Versions in this module Expand all Collapse all v1 v1.4.1 Nov 16, 2022 v1.4.0 Nov 16, 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 Option func(*options) + func WithMetadata(metadata map[string]string) Option + func WithVersion(version string) Option + type Registry 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 + func NewServiceInstance(id string, name string, endpoints []string, opts ...Option) *ServiceInstance + type Watcher interface + Next func() ([]*ServiceInstance, error) + Stop func() error