watcher

package
v0.0.0-...-f3d68a8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCheckPeriod = 1 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Watcher)

func WithCheckPeriod

func WithCheckPeriod(period time.Duration) Option

func WithDHCPSources

func WithDHCPSources(sources map[string]f860.DHCPSourceKind) Option

func WithNotifyScript

func WithNotifyScript(scriptPath string) Option

type Watcher

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

func NewWatcher

func NewWatcher(f860c *f860.Client, opts ...Option) *Watcher

func (*Watcher) Shutdown

func (w *Watcher) Shutdown(ctx context.Context)

func (*Watcher) Sync

func (w *Watcher) Sync(ctx context.Context) error

func (*Watcher) Watch

func (w *Watcher) Watch() error

Jump to

Keyboard shortcuts

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