Versions in this module Expand all Collapse all v1 v1.0.0 Mar 24, 2023 Changes in this version + type Discovery interface + GetService func(ctx context.Context, serviceName string) ([]*ServiceInfo, error) + NewWatcher func(ctx context.Context, serviceName string) (Watcher, error) + type Operation uint8 + const Add + const Delete + type Registrar interface + Deregister func(ctx context.Context, service *ServiceInfo) error + Register func(ctx context.Context, service *ServiceInfo) error + type ServiceInfo struct + Addr string + Metadata map[string]string + Name string + Scheme string + type Update struct + Key string + Op Operation + ServiceInfo *ServiceInfo + type Watcher <-chan []*Update