zookeeper

package
v3.0.1-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 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

Jump to

Keyboard shortcuts

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