Documentation ¶ Index ¶ Variables type Config type Etcd func (cc *Etcd) Close() error func (cc *Etcd) Config() any func (e *Etcd) Handle(ctx context.Context, merge func(io.Reader) error, ...) error func (e *Etcd) Type() string Constants ¶ This section is empty. Variables ¶ View Source var ConfigCenter = &Etcd{} Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { clientv3.Config Keys []string } type Etcd ¶ type Etcd struct { Conf Config Client *clientv3.Client } func (*Etcd) Close ¶ func (cc *Etcd) Close() error func (*Etcd) Config ¶ func (cc *Etcd) Config() any func (*Etcd) Handle ¶ func (e *Etcd) Handle(ctx context.Context, merge func(io.Reader) error, onChange func(io.Reader) error) error func (*Etcd) Type ¶ func (e *Etcd) Type() string Source Files ¶ View all Source files etcd.go Click to show internal directories. Click to hide internal directories.