zookeeper

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 10 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 {
	ZkServers []string
	Directory string
	Timeout   time.Duration
}

type Registrar

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

func New

func New(conf *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