Help us shape the future of Go! Take the 2026 Go Developer Survey

watchermanager

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 8 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[T1 any] interface {
	OnChange(watch.WatchEvent[T1]) bool
}

type WatcherManager

type WatcherManager[T1 any] interface {
	// start the generic watcher channel
	Start(ctx context.Context)
	Stop()
	WatchChan() chan watch.WatchEvent[T1]
	Add(ctx context.Context, callback Watcher[T1], opts ...store.ListOption) error // Del is handled with the isDone or callBackFn result
}

func New

func New[T1 any](maxWatchers int64) WatcherManager[T1]

Jump to

Keyboard shortcuts

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