[enh] add BMA watcher + reorganize code
This commit is contained in:
32
src/lib/types/conf.ts
Normal file
32
src/lib/types/conf.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user