mirror of
https://github.com/status-im/consul.git
synced 2025-02-19 17:14:37 +00:00
Adds a comment about Datacenter and NodeName being stable interfaces
in the runtime config strucutre.
This commit is contained in:
parent
21118cafeb
commit
98850322c0
@ -105,6 +105,12 @@ type RuntimeConfig struct {
|
|||||||
TelemetryStatsdAddr string
|
TelemetryStatsdAddr string
|
||||||
TelemetryStatsiteAddr string
|
TelemetryStatsiteAddr string
|
||||||
|
|
||||||
|
// Datacenter and NodeName are exposed via /v1/agent/self from here and
|
||||||
|
// used in lots of places like CLI commands. Treat this as an interface
|
||||||
|
// that must be stable.
|
||||||
|
Datacenter string
|
||||||
|
NodeName string
|
||||||
|
|
||||||
AdvertiseAddrLAN *net.IPAddr
|
AdvertiseAddrLAN *net.IPAddr
|
||||||
AdvertiseAddrWAN *net.IPAddr
|
AdvertiseAddrWAN *net.IPAddr
|
||||||
BindAddr *net.IPAddr
|
BindAddr *net.IPAddr
|
||||||
@ -119,7 +125,6 @@ type RuntimeConfig struct {
|
|||||||
DNSAddrs []net.Addr
|
DNSAddrs []net.Addr
|
||||||
DNSPort int
|
DNSPort int
|
||||||
DataDir string
|
DataDir string
|
||||||
Datacenter string
|
|
||||||
DevMode bool
|
DevMode bool
|
||||||
DisableAnonymousSignature bool
|
DisableAnonymousSignature bool
|
||||||
DisableCoordinates bool
|
DisableCoordinates bool
|
||||||
@ -144,7 +149,6 @@ type RuntimeConfig struct {
|
|||||||
LogLevel string
|
LogLevel string
|
||||||
NodeID types.NodeID
|
NodeID types.NodeID
|
||||||
NodeMeta map[string]string
|
NodeMeta map[string]string
|
||||||
NodeName string
|
|
||||||
NonVotingServer bool
|
NonVotingServer bool
|
||||||
PidFile string
|
PidFile string
|
||||||
RPCAdvertiseAddr *net.TCPAddr
|
RPCAdvertiseAddr *net.TCPAddr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user