Documentation ¶
Index ¶
- func NewFsnotifyMonitor(name string, monitorConfig config.Monitor) *fsnotifyMonitor
- type Ignore
- func (i *Ignore) Abs() string
- func (i *Ignore) Contains(path string) bool
- func (i *Ignore) GetIgnoreGlobString() string
- func (i *Ignore) HasPrefixAbs(path string) bool
- func (i *Ignore) Init()
- func (i *Ignore) Match(path string) bool
- func (i *Ignore) MatchAbsGlob(path string) bool
- func (i *Ignore) MatchGlob(path string) bool
- type MonitorInterface
- type NilMonitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFsnotifyMonitor ¶
Types ¶
type Ignore ¶
type Ignore struct {
// contains filtered or unexported fields
}
func (*Ignore) GetIgnoreGlobString ¶
func (*Ignore) HasPrefixAbs ¶
func (*Ignore) MatchAbsGlob ¶
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()
Click to show internal directories.
Click to hide internal directories.