Documentation ¶
Index ¶
- Constants
- type FileMonitor
- type FileMonitorSettings
- type Ticker
- func (instance *Ticker) IsPaused() bool
- func (instance *Ticker) IsRunning() bool
- func (instance *Ticker) Join()
- func (instance *Ticker) Lock()
- func (instance *Ticker) Pause()
- func (instance *Ticker) Resume()
- func (instance *Ticker) Start()
- func (instance *Ticker) Stop()
- func (instance *Ticker) Unlock()
- type TickerCallback
Constants ¶
View Source
const FileMonitorErrorEventName = "on_file_match_error"
View Source
const FileMonitorEventName = "on_file_match"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMonitor ¶
type FileMonitor struct {
// contains filtered or unexported fields
}
func NewFileMonitor ¶
func NewFileMonitor(settings *FileMonitorSettings, events *gg_events.Emitter) *FileMonitor
func (*FileMonitor) Events ¶
func (instance *FileMonitor) Events() *gg_events.Emitter
func (*FileMonitor) Start ¶
func (instance *FileMonitor) Start()
func (*FileMonitor) Stop ¶
func (instance *FileMonitor) Stop()
type FileMonitorSettings ¶
type FileMonitorSettings struct { Dirs []string `json:"dirs"` // directories to monitor for file IncludeSubFolders bool `json:"include_sub_folders"` FilePattern string `json:"pattern"` // file name or file pattern i.e. "*.xml" TriggerEventName string `json:"trigger-event-name"` TriggerErrorEventName string `json:"trigger-error-event-name"` CheckIntervalMs int `json:"check-interval-ms"` DeleteAfterMatch bool `json:"delete-after-match"` MoveAfterMatchDir string `json:"move-after-match-dir"` }
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
type TickerCallback ¶
type TickerCallback func(*Ticker)
Click to show internal directories.
Click to hide internal directories.