etcd

package
v1.4.26 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

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

func NewEtcd

func NewEtcd(endpoints, prefix string) *Etcd

func (*Etcd) Get added in v1.4.10

func (s *Etcd) Get(key string) (val string, err error)

func (*Etcd) IsStop

func (s *Etcd) IsStop() bool

func (*Etcd) RegisterService

func (s *Etcd) RegisterService(key, value string) error

RegisterService register node to etcd

func (*Etcd) Start

func (s *Etcd) Start(h servmesh.MeshHandler) (err error)

func (*Etcd) Stop

func (s *Etcd) Stop()

func (*Etcd) UnregisterService

func (s *Etcd) UnregisterService(key string) error

Jump to

Keyboard shortcuts

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