Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2022 Changes in this version + type OptionEtcd struct + Address []string + Client *clientv3.Client + Context context.Context + Node map[string]Options + Timeout time.Duration + func (o *OptionEtcd) DiscoverInfo(opt Options) (*Options, error) + func (o *OptionEtcd) DiscoverList() (map[string]Options, error) + func (o *OptionEtcd) Register(opt Options) (*string, error) + func (o *OptionEtcd) Unregister(opt Options) error + func (o *OptionEtcd) Watch(opt Options) error + type Options struct + Address []string + Context context.Context + Name string + type Registry interface + DiscoverInfo func(Options) (*Options, error) + DiscoverList func() (map[string]Options, error) + Register func(Options) (*string, error) + Unregister func(Options) error + Watch func(Options) error + func NewRegister(opt OptionEtcd) Registry