Documentation ¶
Index ¶
- Constants
- func CreateThreshold(d time.Duration) <-chan time.Time
- func FilterError(cmds []*exec.Cmd, err error) ([]*exec.Cmd, error)
- func IsDir(path string) bool
- func IsExist(path string) bool
- func IsNotExist(path string) bool
- func SetupForOs(cmd *exec.Cmd)
- type EmptyCmdError
- type LogLevel
- type LogLevelString
- type Logger
- type WatcherContext
Constants ¶
View Source
const LogLevelStringDefaultValue = "ERROR"
Variables ¶
This section is empty.
Functions ¶
func FilterError ¶ added in v2.2.6
func IsNotExist ¶
func SetupForOs ¶ added in v2.7.0
Types ¶
type EmptyCmdError ¶
type EmptyCmdError error
func NewEmptyCmdError ¶
func NewEmptyCmdError() EmptyCmdError
type LogLevelString ¶
type LogLevelString string
func (LogLevelString) GetLogLevel ¶
func (l LogLevelString) GetLogLevel() LogLevel
type WatcherContext ¶ added in v2.7.0
type WatcherContext struct {
// contains filtered or unexported fields
}
func NewWatcherContext ¶ added in v2.7.0
func NewWatcherContext() *WatcherContext
func (*WatcherContext) ApplyGracefulShutdown ¶ added in v2.7.0
func (w *WatcherContext) ApplyGracefulShutdown(cmds []*exec.Cmd)
func (*WatcherContext) CancelAndNew ¶ added in v2.7.0
func (w *WatcherContext) CancelAndNew()
func (*WatcherContext) Context ¶ added in v2.7.0
func (w *WatcherContext) Context() context.Context
func (*WatcherContext) MarkStart ¶ added in v2.7.0
func (w *WatcherContext) MarkStart()
func (*WatcherContext) SetWaitNumber ¶ added in v2.7.0
func (w *WatcherContext) SetWaitNumber(num int)
func (*WatcherContext) WaitStart ¶ added in v2.7.0
func (w *WatcherContext) WaitStart()
Click to show internal directories.
Click to hide internal directories.