Refactor project
This commit is contained in:
parent
6c75b0ab72
commit
f09bfe9db3
12 changed files with 77 additions and 70 deletions
17
common.pkl
Normal file
17
common.pkl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module emgauwa.common
|
||||
|
||||
class ServerConfig {
|
||||
host: String
|
||||
port: UInt16
|
||||
token: String
|
||||
}
|
||||
|
||||
/// Set to a user and a group to drop privileges to after binding to the port
|
||||
class PermissionsConfig {
|
||||
user: String
|
||||
group: String
|
||||
}
|
||||
|
||||
class LoggingConfig {
|
||||
level: "TRACE"|"DEBUG"|"INFO"|"WARN"|"ERROR"|"FATAL"
|
||||
}
|
||||
Loading…
Reference in a new issue