watcher

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 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)

func (*EtcdWatcher) Stop

func (w *EtcdWatcher) Stop(_ context.Context)

type KeyChangedCallback

type KeyChangedCallback func(ctx context.Context)

type Watcher

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

func NewWatcher

func NewWatcher(client etcdv3.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