zookeeper

package
v2.0.0-rc.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery added in v1.6.0

type Discovery struct {
	// contains filtered or unexported fields
}

Discovery implements the TargetProvider interface for discovering targets from Zookeeper.

func NewDiscovery

func NewDiscovery(
	srvs []string,
	timeout time.Duration,
	paths []string,
	logger log.Logger,
	pf func(data []byte, path string) (model.LabelSet, error),
) *Discovery

NewDiscovery returns a new discovery along Zookeeper parses with the given parse function.

func NewNerveDiscovery

func NewNerveDiscovery(conf *config.NerveSDConfig, logger log.Logger) *Discovery

NewNerveDiscovery returns a new Discovery for the given Nerve config.

func NewServersetDiscovery

func NewServersetDiscovery(conf *config.ServersetSDConfig, logger log.Logger) *Discovery

NewServersetDiscovery returns a new Discovery for the given serverset config.

func (*Discovery) Run added in v1.6.0

func (d *Discovery) 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