Versions in this module Expand all Collapse all v1 v1.0.1 Feb 8, 2024 v1.0.0 Feb 8, 2024 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