Documentation ¶
Overview ¶
Package etcd is a wrapper around config package and allows reading configuration from some key in etcd server.
Typical usage:
cfg := config.Must(etcd.NewConfig(endpoints, key, encoder)) err = cfg.Get(&myStructure) if err != nil { panic(err) }
See config package for more details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoData = errors.New("no data")
ErrNoData error is returned when etcd doesn't have any configuration data by given key.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.