zookeeper

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL