/
config.go
62 lines (43 loc) · 1.43 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
62
package server
import (
"io"
"time"
)
// DatabaseConfig contains all the information to start the Kappa server.
type DatabaseConfig struct {
// NodeName is the name of the node. If it is empty, a name
// will be generated.
NodeName string
// ClusterName prevents two clusters from merging.
ClusterName string
// ExistingNodes is an array of nodes already in the cluster.
ExistingNodes []string
// Bootstrap determines if the server is bootstrapped into the cluster.
Bootstrap bool
BootstrapExpect int
// Build is the running server revision.
Build string
// AdminCertificateFile is the path to the admin user's certificate.
AdminCertificateFile string
// CACertificateFile is the path to the CA certificate.
CACertificateFile string
// DataPath is the root directory for all data produced by the database.
DataPath string
// LogOutput is the writer to which all logs are
// written to. If nil, it defaults to os.Stdout.
LogOutput io.Writer
// SSHBindAddress is the address on which the SSH server listens.
SSHBindAddress string
// SSHConnectionDeadline is the deadline for maximum connection attempts.
SSHConnectionDeadline time.Duration
// SSHPrivateKeyFile refers to the private key file of the SSH server.
SSHPrivateKeyFile string
// GossipBindAddr
GossipBindAddr string
// GossipBindPort
GossipBindPort int
// GossipAdvertiseAddr
GossipAdvertiseAddr string
// GossipAdvertisePort
GossipAdvertisePort int
}