etcd

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 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 Watcher

type Watcher interface {
	Watch(ctx context.Context, key string, callback func(val string))
	Read(key string) (string, error)
}

Watcher see Watch func for details

func NewEtcdWatcher

func NewEtcdWatcher(endpointsList []string) (Watcher, error)

NewEtcdWatcher returns a new etcd watcher

Jump to

Keyboard shortcuts

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