notifier

package
v0.0.0-...-b88bf2b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer func() error

type Notifier

type Notifier interface {
	Notify(ctx context.Context, watchers []events.Watcher, events chan<- events.Event, errors chan<- error) (Closer, error)
}

A notifier takes a set of watchers to watch and emits events when a file of those being watched changes. Errors will be sent over the error channel. The watcher keeps watching files until the ctx is done. The watcher returns a closer to stop watching the files.

func New

func New(logger hclog.Logger) Notifier

Jump to

Keyboard shortcuts

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