watcher

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdWatcher

type EtcdWatcher struct {
	// contains filtered or unexported fields
}

func (*EtcdWatcher) Start

func (w *EtcdWatcher) Start(ctx context.Context) error

func (*EtcdWatcher) Stop

func (w *EtcdWatcher) Stop(ctx context.Context) error

type KeyChangedCallback

type KeyChangedCallback func(ctx context.Context)

type Watcher

type Watcher interface {
	Start(context.Context) error
	Stop(context.Context) error
}

func NewWatcher

func NewWatcher(client clientv3.Watcher, prefix string, callback KeyChangedCallback) Watcher

Directories

Path Synopsis
Package watchermock is a generated GoMock package.
Package watchermock is a generated GoMock package.

Jump to

Keyboard shortcuts

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