etcd

package
v0.0.0-...-78a0d84 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 6 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(host []string, timeout ...time.Duration) *Etcd

func (*Etcd) Delete

func (e *Etcd) Delete(key string, oldDataCallback ...func(k, v []byte))

func (*Etcd) Get

func (e *Etcd) Get(key string, f func(k, v []byte))

func (*Etcd) KeepOnline

func (e *Etcd) KeepOnline(ttl int64, callback func() (string, string, bool))

func (*Etcd) KeepOnlineEx

func (e *Etcd) KeepOnlineEx(key, value string, ttl int64)

func (*Etcd) Put

func (e *Etcd) Put(key, value string, ttl ...int64)

func (*Etcd) Watch

func (e *Etcd) Watch(key string, putCallback func(k, v []byte), delCallback func([]byte))

Jump to

Keyboard shortcuts

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