fswatch

package
v0.0.9-beta Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, key KeyType, value interface{}) context.Context

Register is register value of context.

Types

type FSWatcher

type FSWatcher struct {
	Events chan fsnotify.Event
	// contains filtered or unexported fields
}

func (*FSWatcher) FSWatcherStart

func (w *FSWatcher) FSWatcherStart(ctx context.Context, watch *fsnotify.Watcher)

func (*FSWatcher) FSWatcherStop

func (w *FSWatcher) FSWatcherStop()

type KeyType

type KeyType int

type ProcessEvent

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

ProcessEvent construct.

func NewEvent

func NewEvent(ctx context.Context) *ProcessEvent

NewEvent cmd wrapper.

func (*ProcessEvent) Run

func (p *ProcessEvent) Run(event chan fsnotify.Event)

Jump to

Keyboard shortcuts

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