-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.go
39 lines (36 loc) · 926 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package main
import broker "github.com/DaoCasino/platform-action-monitor-client"
type Config struct {
Server struct {
Port int `default:"80"`
LogLevel string `default:"INFO"`
}
Broker struct {
TopicOffsetPath string
URL string
TopicID broker.EventType
ReconnectionAttempts int `default:"3"`
ReconnectionDelay int `default:"3"`
Token string
}
BlockChain struct {
DepositKey string
SigniDiceKey string
SigniDiceAccountName string
CasinoAccountName string
RSAKey string
URL string
ChainID string
PlatformAccountName string
PlatformPubKey string
}
HTTP struct {
RetryAmount int `default:"3"`
RetryDelay int `default:"1"`
Timeout int `default:"3"`
}
}
const (
defaultConfigPath = "/etc/casino/config.dev"
configEnvVar = "CONFIG_PATH"
)