observer

package
v0.0.0-...-adc1ce0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringToEvents

func StringToEvents(str string) []fsnotify.Op

Types

type Feedback

type Feedback struct {
	Observer *Observer
	Error    error
}

type Input

type Input struct {
	Path     string
	Events   string
	Reaction *reaction.Input
	// contains filtered or unexported fields
}

type Observer

type Observer struct {
	Path     string
	Events   []fsnotify.Op
	Reaction *reaction.Reaction
	// contains filtered or unexported fields
}

func New

func New(in Input) *Observer

func (*Observer) Close

func (a *Observer) Close()

func (*Observer) Watch

func (a *Observer) Watch()

Jump to

Keyboard shortcuts

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