etcdv3

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

copy from go-plugins/registry/etcdv3 Package etcdv3 provides an etcd version 3 registry

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = "etcdv3"
)

Functions

func Auth

func Auth(username, password string) registry.Option

Auth allows you to specify username/password

func NewRegistry

func NewRegistry() registry.Registry

Types

type Registry

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

func (*Registry) Deregister

func (e *Registry) Deregister(s *registry.Service) error

func (*Registry) GetService

func (e *Registry) GetService(name string) ([]*registry.Service, error)

func (*Registry) Init

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

func (*Registry) ListServices

func (e *Registry) ListServices() ([]*registry.Service, error)

func (*Registry) Options

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

func (*Registry) Register

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

func (*Registry) String

func (e *Registry) String() string

func (*Registry) Watch

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

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func (*Watcher) Next

func (w *Watcher) Next() (*registry.Result, error)

func (*Watcher) Stop

func (w *Watcher) Stop()

Jump to

Keyboard shortcuts

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