etcd

package module
v1.6.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth added in v0.22.5

func Auth(username, password string) registry.Option

Auth allows you to specify username/password

func NewEtcdRegistry added in v1.4.9

func NewEtcdRegistry(client *clientv3.Client, opts ...registry.Option) registry.Registry

func NewRegistry

func NewRegistry(opts ...registry.Option) registry.Registry

Types

type Registry added in v1.6.18

type Registry struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Registry) Deregister added in v1.6.18

func (e *Registry) Deregister(ctx context.Context, s *registry.Service, opts ...registry.DeregisterOption) error

func (*Registry) GetConn added in v1.6.18

func (e *Registry) GetConn() *clientv3.Client

func (*Registry) GetService added in v1.6.18

func (e *Registry) GetService(ctx context.Context, name string, opts ...registry.GetOption) ([]*registry.Service, error)

func (*Registry) Init added in v1.6.18

func (e *Registry) Init(opts ...registry.Option) error

func (*Registry) ListServices added in v1.6.18

func (e *Registry) ListServices(ctx context.Context, opts ...registry.ListOption) ([]*registry.Service, error)

func (*Registry) Options added in v1.6.18

func (e *Registry) Options() registry.Options

func (*Registry) Register added in v1.6.18

func (e *Registry) Register(ctx context.Context, s *registry.Service, opts ...registry.RegisterOption) error

func (*Registry) String added in v1.6.18

func (e *Registry) String() string

func (*Registry) Watch added in v1.6.18

func (e *Registry) Watch(ctx context.Context, opts ...registry.WatchOption) (registry.Watcher, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL