watch

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrCfgNotFoun config file does not exist
	ErrCfgNotFoun = "config file not found"
)

Variables

This section is empty.

Functions

func InitCmd

func InitCmd(watchCmd *cobra.Command)

func StartCmd

func StartCmd(watchCmd *cobra.Command) (app *cobra.Command)

Types

type FileWatcher

type FileWatcher interface {
	Events() <-chan fsnotify.Event
	Errors() <-chan error
	Add(name string) error
	Remove(name string) error
	Close() error
}

func NewEventWatcher

func NewEventWatcher() (FileWatcher, error)

func NewPollingWatcher

func NewPollingWatcher() FileWatcher

func NewWatcher

func NewWatcher() (FileWatcher, error)

Jump to

Keyboard shortcuts

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