etcd3

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Etcd      clientv3.Config
	Directory string
	TTL       time.Duration
}

type Registrar

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

func New

func New(config *Config, logger logrus.FieldLogger) (*Registrar, error)

func (*Registrar) Close

func (r *Registrar) Close()

func (*Registrar) Register

func (r *Registrar) Register(service *registry.Info) error

func (*Registrar) Unregister

func (r *Registrar) Unregister(service *registry.Info) error

Jump to

Keyboard shortcuts

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