Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSDConfig = SDConfig{ Port: 9163, RefreshInterval: model.Duration(60 * time.Second), Version: 1, }
DefaultSDConfig is the default Triton SD configuration.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
Discovery periodically performs Triton-SD requests. It implements the Discoverer interface.
type SDConfig ¶
type SDConfig struct { Account string `yaml:"account"` DNSSuffix string `yaml:"dns_suffix"` Endpoint string `yaml:"endpoint"` Groups []string `yaml:"groups,omitempty"` Port int `yaml:"port"` RefreshInterval model.Duration `yaml:"refresh_interval,omitempty"` TLSConfig config_util.TLSConfig `yaml:"tls_config,omitempty"` Version int `yaml:"version"` }
SDConfig is the configuration for Triton based service discovery.
func (*SDConfig) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.