Versions in this module Expand all Collapse all v0 v0.1.0 Nov 22, 2021 Changes in this version + type Client struct + func NewClient(cli *api.Client) *Client + func (d *Client) Deregister(ctx context.Context, serviceID string) error + func (d *Client) Register(ctx context.Context, svc *registry.ServiceInstance, enableHealthCheck bool) error + func (d *Client) Service(ctx context.Context, service string, index uint64, passingOnly bool) ([]*registry.ServiceInstance, uint64, error) + type Config struct + type Option func(*Registry) + func WithHealthCheck(enable bool) Option + type Registry struct + func New(apiClient *api.Client, opts ...Option) *Registry + func (r *Registry) Deregister(ctx context.Context, svc *registry.ServiceInstance) error + func (r *Registry) GetService(ctx context.Context, name string) (services []*registry.ServiceInstance, err error) + func (r *Registry) ListServices() (allServices map[string][]*registry.ServiceInstance, err error) + func (r *Registry) Register(ctx context.Context, svc *registry.ServiceInstance) error + func (r *Registry) Watch(ctx context.Context, name string) (registry.Watcher, error)