[enh] add url watcher + add optional maxLate parameter for BMA watcher

This commit is contained in:
2019-06-20 13:17:17 +02:00
parent 2f873d9b67
commit 129fa99593
6 changed files with 101 additions and 41 deletions

View File

@@ -3,6 +3,7 @@ export interface Conf {
reconnectionDelays: number[]
ws2pServers: ConfWS2P[]
bmaServers: ConfBMA[]
dprobeHeartbeats: ConfDprobeHeartbeat[]
mail: ConfMail
}
@@ -14,11 +15,19 @@ export interface ConfWS2P {
currency: string
}
export interface ConfBMA {
export interface ConfURL {
address: string
frequency: number
}
export interface ConfBMA extends ConfURL {
maxLate?: number
}
export interface ConfDprobeHeartbeat extends ConfURL{
lastBeat: number
}
export interface ConfMail {
enabled: boolean
host: string