Documentation
¶
Index ¶
Constants ¶
View Source
const ( InitialClusterStateNew = "new" InitialClusterStateExisting = "existing" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Name string `toml:"name"`
DataDir string `toml:"data-dir"`
ClientUrls string `toml:"client-urls"`
PeerUrls string `toml:"peer-urls"`
AdvertiseClientUrls string `toml:"advertise-client-urls"`
AdvertisePeerUrls string `toml:"advertise-peer-urls"`
InitialCluster string `toml:"initial-cluster"`
InitialClusterState string `toml:"initial-cluster-state"`
InitialClusterToken string `toml:"initial-cluster-token"`
Join string `toml:"join"`
Security Security `toml:"security"`
}
Config is a subset config of pd Only our managed fields are defined in here
type Security ¶
type Security struct {
// CAPath is the path of file that contains list of trusted SSL CAs.
CAPath string `toml:"cacert-path"`
// CertPath is the path of file that contains X509 certificate in PEM format.
CertPath string `toml:"cert-path"`
// KeyPath is the path of file that contains X509 key in PEM format.
KeyPath string `toml:"key-path"`
}
Click to show internal directories.
Click to hide internal directories.