Versions in this module Expand all Collapse all v2 v2.2.1 Apr 12, 2022 Changes in this version + type Discovery interface + GetService func(ctx context.Context, serviceName string) ([]*ServiceInstance, error) + Watch func(ctx context.Context, serviceName string) (Watcher, error) + type Registrar interface + Deregister func(ctx context.Context, service *ServiceInstance) error + Register func(ctx context.Context, service *ServiceInstance) error + type ServiceInstance struct + Endpoints []string + ID string + Metadata map[string]string + Name string + Version string + type Watcher interface + Next func() ([]*ServiceInstance, error) + Stop func() error