Adds a comment about Datacenter and NodeName being stable interfaces

in the runtime config strucutre.
This commit is contained in:
James Phillips 2017-09-27 11:59:22 -07:00
parent 21118cafeb
commit 98850322c0
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 6 additions and 2 deletions

View File

@ -105,6 +105,12 @@ type RuntimeConfig struct {
TelemetryStatsdAddr 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
AdvertiseAddrWAN *net.IPAddr
BindAddr *net.IPAddr
@ -119,7 +125,6 @@ type RuntimeConfig struct {
DNSAddrs []net.Addr
DNSPort int
DataDir string
Datacenter string
DevMode bool
DisableAnonymousSignature bool
DisableCoordinates bool
@ -144,7 +149,6 @@ type RuntimeConfig struct {
LogLevel string
NodeID types.NodeID
NodeMeta map[string]string
NodeName string
NonVotingServer bool
PidFile string
RPCAdvertiseAddr *net.TCPAddr