zookeeper

package
v4.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package zookeeper contains the logic for using Zookeeper as a config source. Currently globbing only works if it is a suffix to the path.

Index

Constants

This section is empty.

Variables

View Source
var ErrBadGlob = errors.New("Zookeeper only supports globs in the last path segment")

ErrBadGlob gets returned when the globbing in a path is invalid

Functions

func New

func New(conf *Config) types.ConfigSource

New creates a new Zookeeper config source with the given config. All gets and watches will use the same client.

Types

type Config

type Config struct {
	// A list of Zookeeper servers to use for the client
	Endpoints []string `yaml:"endpoints"`
	// Client timeout
	TimeoutSeconds uint `yaml:"timeoutSeconds" default:"10"`
}

Config is used to configure the Zookeeper client

func (*Config) New

func (c *Config) New() (types.ConfigSource, error)

New creates a new Zookeeper remote config source from the target config

func (*Config) Validate

func (c *Config) Validate() error

Validate the config

Jump to

Keyboard shortcuts

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