monitor

package
v0.0.0-...-eddcbdb Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFsnotifyMonitor

func NewFsnotifyMonitor(name string, monitorConfig config.Monitor) *fsnotifyMonitor

Types

type Ignore

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

func NewIgnore

func NewIgnore(ignoreString string) *Ignore

func (*Ignore) Abs

func (i *Ignore) Abs() string

func (*Ignore) Contains

func (i *Ignore) Contains(path string) bool

func (*Ignore) GetIgnoreGlobString

func (i *Ignore) GetIgnoreGlobString() string

func (*Ignore) HasPrefixAbs

func (i *Ignore) HasPrefixAbs(path string) bool

func (*Ignore) Init

func (i *Ignore) Init()

func (*Ignore) Match

func (i *Ignore) Match(path string) bool

func (*Ignore) MatchAbsGlob

func (i *Ignore) MatchAbsGlob(path string) bool

func (*Ignore) MatchGlob

func (i *Ignore) MatchGlob(path string) bool

type MonitorInterface

type MonitorInterface interface {
	Run(func(string))
	Stop()
}

func NewMonitor

func NewMonitor(name string, monitorConfig config.Monitor) MonitorInterface

type NilMonitor

type NilMonitor struct {
}

func (*NilMonitor) Run

func (nm *NilMonitor) Run(fn func(string))

func (*NilMonitor) Stop

func (nm *NilMonitor) Stop()

Jump to

Keyboard shortcuts

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