watch

package
v5.0.0-...-f887f55 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomValueDiffers []diff.ValueDiffer

Functions

func RegisterCustomValueDiffer

func RegisterCustomValueDiffer(differ diff.ValueDiffer)

Types

type Caller

type Caller interface {
	Call(diff.Change) error
}

type Cloneable

type Cloneable interface {
	Get() any
	Empty()
}

type Receiver

type Receiver interface {
	Next() (any, error)
	Stop()
}

func NewCombinedReceiver

func NewCombinedReceiver(rr []Receiver) Receiver

type WatchOption

type WatchOption func(*WatchOptions)

func WithChangesOnly

func WithChangesOnly() WatchOption

func WithPath

func WithPath(path ...string) WatchOption

type WatchOptions

type WatchOptions struct {
	Path        []string
	ChangesOnly bool
}

type Watchable

type Watchable[T Cloneable] interface {
	Clone() T
	Cloneable
}

type Watcher

type Watcher interface {
	Reset()
	Flush()
	Watch(...WatchOption) (Receiver, error)
}

func NewWatcher

func NewWatcher[T Cloneable](object Watchable[T]) Watcher

Jump to

Keyboard shortcuts

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