zookeeper

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: Apache-2.0 Imports: 11 Imported by: 292

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZookeeperDiscovery added in v1.4.0

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 added in v1.4.0

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