Versions in this module Expand all Collapse all v1 v1.0.0 Feb 28, 2023 Changes in this version + type Option func(o *options) + func WithAddr(addr string) Option + func WithClient(client *api.Client) Option + func WithContext(ctx context.Context) Option + func WithDeregisterCriticalServiceAfter(after int) Option + func WithEnableHealthCheck(enable bool) Option + func WithEnableHeartbeatCheck(enable bool) Option + func WithHealthCheckInterval(interval int) Option + func WithHealthCheckTimeout(timeout int) Option + func WithHeartbeatCheckInterval(interval int) Option + type Registry struct + func NewRegistry(opts ...Option) *Registry + func (r *Registry) Deregister(ctx context.Context, ins *registry.ServiceInstance) error + func (r *Registry) Register(ctx context.Context, ins *registry.ServiceInstance) error + func (r *Registry) Services(ctx context.Context, serviceName string) ([]*registry.ServiceInstance, error) + func (r *Registry) Watch(ctx context.Context, serviceName string) (registry.Watcher, error)