watch

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

* @Author: seekwe * @Date: 2020-07-03 19:28:53 * @Last Modified by:: seekwe * @Last Modified time: 2020-07-08 19:34:07

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