Versions in this module Expand all Collapse all v1 v1.0.0 Apr 20, 2022 Changes in this version + type Component struct + Config *Config + func (reg *Component) Close() error + func (reg *Component) ListServices(ctx context.Context, t eregistry.Target) (services []*server.ServiceInfo, err error) + func (reg *Component) RegisterService(ctx context.Context, info *server.ServiceInfo) error + func (reg *Component) SyncServices(context.Context, eregistry.SyncServicesOptions) error + func (reg *Component) UnregisterService(ctx context.Context, info *server.ServiceInfo) error + func (reg *Component) WatchServices(ctx context.Context, t eregistry.Target) (chan eregistry.Endpoints, error) + type Config struct + OnFailHandle string + Prefix string + ReadTimeout time.Duration + Scheme string + ServiceTTL time.Duration + func DefaultConfig() *Config + type Container struct + func DefaultContainer() *Container + func Load(key string) *Container + func (c *Container) Build(options ...Option) *Component + type Option func(c *Container) + func WithClientEtcd(etcdClient *eetcd.Component) Option