Documentation
¶
Overview ¶
Package sd pkg/services/sd/config.go c2-vis-appsvc
Package sd pkg/services/sd/sd.go c2-vis-appsvc
service-discovery as a pkg/services.Service.
Index ¶
Constants ¶
View Source
const Type = "service-discovery"
Type is the registry key used in services.json blocks.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Path string `json:"-"`
services.Common
Whitelist []string `json:"whitelist_keys,omitempty"`
// GeoIP is the URL of the geoip service. Visors populate Geo on
// their entries directly post-#2439; field kept for backward
// compatibility.
GeoIP string `json:"geoip,omitempty"`
// Dmsg is the dmsg-related config block — same shape across
// every deployment service that uses it.
Dmsg cmdutil.DmsgConfig `json:"dmsg,omitempty"`
// ChartsAddr serves only the charts page over plain HTTP. Empty disables it.
ChartsAddr string `json:"charts_addr,omitempty"`
}
Config is the JSON configuration for service-discovery.
func ParseBlock ¶
ParseBlock decodes a services.json block into a Config.
Click to show internal directories.
Click to hide internal directories.