[enh] add BMA watcher + reorganize code

This commit is contained in:
2019-06-08 18:34:39 +02:00
parent d02de7842f
commit 5544d56ebb
13 changed files with 232 additions and 606 deletions

32
src/lib/types/conf.ts Normal file
View File

@@ -0,0 +1,32 @@
export interface Conf {
connectionTimeout: number
reconnectionDelays: number[]
ws2pServers: ConfWS2P[]
bmaServers: ConfBMA[]
mail: ConfMail
}
export interface ConfWS2P {
address: string
expectedKey: string
salt: string
passwd: string
currency: string
}
export interface ConfBMA {
address: string
frequency: number
}
export interface ConfMail {
enabled: boolean
host: string
port: number
auth: string
encryption: string
username: string
apikey: string
from: string
to: string
}