etcd

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 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) IsStop

func (s *Etcd) IsStop() bool

func (*Etcd) RegisterService

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

注册kv

func (*Etcd) Start

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