watch

package
v1.20.120 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Zlib Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Delete = 1
	Put    = 2
)

Cmd=

Variables

This section is empty.

Functions

This section is empty.

Types

type Chan

type Chan chan Changed

type Changed

type Changed struct {
	D   interface{}
	Cmd int
}

func NewChanged

func NewChanged(data interface{}, cmd int) Changed

type Key

type Key interface {
	ToKey() string
	ToMap() map[string]interface{} // for consul
}

type Watcher

type Watcher interface {
	Watch(key Key) (Chan, error)
	Changed(cmd Changed)
	Stop() error
}

Jump to

Keyboard shortcuts

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