-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
42 lines (35 loc) · 985 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
40
41
42
package floridalist
import(
"time"
)
type Config struct {
DebugMode bool
VerboseMode bool
Procs int
MemberlistNodeName string
MemberlistJoinAddress string
MemberlistBindIp string
MemberlistBindPort int
FloridaBindIP string
FloridaBindPort int
FloridaEndpoint string
HttpReadTimeout time.Duration
HttpWriteTimeout time.Duration
MemberlistLeaveTimeout time.Duration
UseWANConfig bool
}
type SeedAdvertise struct {
Datacenter string `json:"d"`
Rack string `json:"r"`
Token string `json:"t"`
Address string `json:"a"`
}
type DynomiteYaml struct {
DynomiteConf Dyn_o_mite `yaml:"dyn_o_mite"`
}
type Dyn_o_mite struct {
Datacenter string `yaml:"datacenter"`
Rack string `yaml:"rack"`
Listen string `yaml:"dyn_listen"`
Tokens string `yaml:"tokens"`
}