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
Click to show internal directories.
Click to hide internal directories.