Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() configsource.Factory
NewFactory returns a new zookeekeper config source factory
Types ¶
type Config ¶
type Config struct { configsource.SourceSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // Endpoints is an array of Zookeeper server addresses. Thr ConfigSource will try to connect // to these endpoints to access Zookeeper clusters. Endpoints []string `mapstructure:"endpoints"` // Timeout sets the amount of time for which a session is considered valid after losing // connection to a server. Within the session timeout it's possible to reestablish a connection // to a different server and keep the same session. Timeout time.Duration `mapstructure:"timeout"` }
Config defines zookeeperconfigsource configuration
Click to show internal directories.
Click to hide internal directories.