etcd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 7 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 {
	*clientv3.Client

	LeaseID clientv3.LeaseID
	// contains filtered or unexported fields
}

func NewEtcd

func NewEtcd(addr string) (*Etcd, error)

func (*Etcd) Close

func (e *Etcd) Close()

func (*Etcd) GetPrefix

func (e *Etcd) GetPrefix(prefix string) (ret []string, err error)

func (*Etcd) NewWatcher

func (e *Etcd) NewWatcher() clientv3.Watcher

func (*Etcd) RegistAndKeepAlive

func (e *Etcd) RegistAndKeepAlive(k, value string) error

func (*Etcd) WatchPrefixAndBlock

func (e *Etcd) WatchPrefixAndBlock(prefix string, closeCh chan struct{}, fn func())

Jump to

Keyboard shortcuts

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