registry

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEndpointNotExist = errors.New("ERR_ENDPOINT_NOT_EXIST")

Functions

func NewEtcdClient

func NewEtcdClient(conf RegistryConf) (*clientv3.Client, func(), error)

NewEtcdClient .... init etcd client/v3

func NewRegistrar

func NewRegistrar(client *clientv3.Client) registry.Registrar

NewRegistrar ... init ectd Registry

Types

type RegistryConf

type RegistryConf interface {
	GetEndpoints() []string
	GetEnabled() bool
}

Jump to

Keyboard shortcuts

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