Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZookeeperDiscovery ¶
type ZookeeperDiscovery struct {
// contains filtered or unexported fields
}
func NewDiscovery ¶
func NewDiscovery( srvs []string, timeout time.Duration, paths []string, pf func(data []byte, path string) (model.LabelSet, error), ) *ZookeeperDiscovery
NewDiscovery returns a new discovery along Zookeeper parses with the given parse function.
func NewNerveDiscovery ¶
func NewNerveDiscovery(conf *config.NerveSDConfig) *ZookeeperDiscovery
NewNerveDiscovery returns a new NerveDiscovery for the given config.
func NewServersetDiscovery ¶
func NewServersetDiscovery(conf *config.ServersetSDConfig) *ZookeeperDiscovery
NewServersetDiscovery returns a new ServersetDiscovery for the given config.
func (*ZookeeperDiscovery) Run ¶
func (sd *ZookeeperDiscovery) Run(ctx context.Context, ch chan<- []*config.TargetGroup)
Run implements the TargetProvider interface.
Click to show internal directories.
Click to hide internal directories.