Versions in this module Expand all Collapse all v0 v0.8.0 Nov 8, 2018 v0.7.0 Mar 19, 2018 Changes in this version + var ErrNoKey = errors.New("no key provided") + var ErrNoValue = errors.New("no value provided") + type Client interface + Deregister func(s Service) error + GetEntries func(prefix string) ([]string, error) + LeaseID func() int64 + Register func(s Service) error + WatchPrefix func(prefix string, ch chan struct{}) + func NewClient(ctx context.Context, machines []string, options ClientOptions) (Client, error) + type ClientOptions struct + CACert string + Cert string + DialKeepAlive time.Duration + DialTimeout time.Duration + Key string + Password string + Username string + type Instancer struct + func NewInstancer(c Client, prefix string, logger log.Logger) (*Instancer, error) + func (s *Instancer) Deregister(ch chan<- sd.Event) + func (s *Instancer) Register(ch chan<- sd.Event) + func (s *Instancer) Stop() + type Registrar struct + func NewRegistrar(client Client, service Service, logger log.Logger) *Registrar + func (r *Registrar) Deregister() + func (r *Registrar) Register() + type Service struct + Key string + TTL *TTLOption + Value string + type TTLOption struct + func NewTTLOption(heartbeat, ttl time.Duration) *TTLOption