Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePeers ¶
Types ¶
type DNSDiscovery ¶ added in v1.10.0
type DNSDiscovery struct {
// contains filtered or unexported fields
}
func NewDNSDiscovery ¶ added in v1.10.0
func (*DNSDiscovery) Close ¶ added in v1.10.0
func (d *DNSDiscovery) Close()
func (*DNSDiscovery) Rediscover ¶ added in v1.10.0
func (d *DNSDiscovery) Rediscover()
func (*DNSDiscovery) Subscribe ¶ added in v1.10.0
func (d *DNSDiscovery) Subscribe(updates Updates)
type Discovery ¶
type Discovery interface { Subscribe(updates Updates) Rediscover() Close() }
func NewDiscovery ¶
func NewDiscovery(l log.Logger, address string, reg prometheus.Registerer) (Discovery, error)
type KubeDiscovery ¶
type KubeDiscovery struct {
// contains filtered or unexported fields
}
func NewKubeResolverDiscovery ¶
func NewKubeResolverDiscovery(l log.Logger, target string, client kuberesolver2.K8sClient) (*KubeDiscovery, error)
func (*KubeDiscovery) Close ¶
func (g *KubeDiscovery) Close()
func (*KubeDiscovery) Rediscover ¶ added in v1.10.0
func (g *KubeDiscovery) Rediscover()
func (*KubeDiscovery) Subscribe ¶
func (g *KubeDiscovery) Subscribe(upd Updates)
type StaticDiscovery ¶
type StaticDiscovery struct {
// contains filtered or unexported fields
}
func NewStaticDiscovery ¶
func NewStaticDiscovery(servers []Server) *StaticDiscovery
func (*StaticDiscovery) Close ¶
func (s *StaticDiscovery) Close()
func (*StaticDiscovery) Rediscover ¶ added in v1.10.0
func (s *StaticDiscovery) Rediscover()
func (*StaticDiscovery) Subscribe ¶
func (s *StaticDiscovery) Subscribe(updates Updates)
type UpdateFunc ¶
type UpdateFunc func(servers []Server)
func (UpdateFunc) Servers ¶
func (f UpdateFunc) Servers(servers []Server)
Click to show internal directories.
Click to hide internal directories.