forked from sensu/sensu-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
61 lines (49 loc) · 1.49 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package backend
import (
"github.com/sensu/sensu-go/backend/etcd"
"github.com/sensu/sensu-go/types"
)
const (
// DefaultEtcdName is the default etcd member node name (single-node cluster only)
DefaultEtcdName = "default"
// DefaultEtcdClientURL is the default URL to listen for Etcd clients
DefaultEtcdClientURL = "http://127.0.0.1:2379"
// DefaultEtcdPeerURL is the default URL to listen for Etcd peers (single-node cluster only)
DefaultEtcdPeerURL = "http://127.0.0.1:2380"
)
// Config specifies a Backend configuration.
type Config struct {
// Backend Configuration
StateDir string
CacheDir string
// Agentd Configuration
AgentHost string
AgentPort int
// Apid Configuration
APIListenAddress string
APIURL string
// Dashboardd Configuration
DashboardHost string
DashboardPort int
DashboardTLSCertFile string
DashboardTLSKeyFile string
// Pipelined Configuration
DeregistrationHandler string
// Etcd configuration
EtcdAdvertiseClientURLs []string
EtcdInitialAdvertisePeerURLs []string
EtcdInitialClusterToken string
EtcdInitialClusterState string
EtcdInitialCluster string
EtcdListenClientURLs []string
EtcdListenPeerURLs []string
EtcdName string
NoEmbedEtcd bool
// Etcd TLS configuration
EtcdClientTLSInfo etcd.TLSInfo
EtcdPeerTLSInfo etcd.TLSInfo
EtcdCipherSuites []string
EtcdMaxRequestBytes uint
EtcdQuotaBackendBytes int64
TLS *types.TLSOptions
}