Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePeers ¶
Types ¶
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) ServerError ¶
func (g *KubeDiscovery) ServerError(srv Server)
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) ServerError ¶
func (s *StaticDiscovery) ServerError(srv Server)
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.