Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command is the command to run the agent
type Config ¶
type Config struct { // NodeName is the unique name of the client. NodeName string `hcl:"name"` // DataDir is the path for the data directory. DataDir string `hcl:"data_dir"` // ServiceName is the name of the service. ServiceName string `hcl:"service"` // LogLevel is used to set the log level. LogLevel string `hcl:"log_level"` // Consul is the configuration for the consul agent. Consul *config.ConsulConfig `hcl:"consul"` // DevMode enables the development mode. It can only be enabled with command flags. DevMode bool `hcl:"-"` // Debug enables debug mode Debug bool `hcl:"debug"` // Backend is the configuration of the backend Backend map[string]map[string]interface{} `hcl:"backend"` // BindAddr is the address we bind to. BindAddr string `hcl:"bind_addr"` // AdvertiseAddr is the address we advertise to other nodes. AdvertiseAddr string `hcl:"advertise_addr"` // BootstrapExpect is the expected number of nodes // to bootstrap the cluster. BootstrapExpect int `hcl:"bootstrap_expect"` // Ports configures the set of ports Ports *Ports `hcl:"ports"` // Telemetry is the configuration for the telemetry Telemetry *cluster.Telemetry `hcl:"telemetry"` // Envoy is the configuration for envoy proxy Envoy *cluster.EnvoyConfig `hcl:"envoy"` }
Config is the agent configuration
Click to show internal directories.
Click to hide internal directories.