Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoParanoia = 0 + iota BasicParanoia ExtraParanoia )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Actions []Action /* List of actions to perform when new files arrive */ AfterFileAction func(filename string) /* Callback to call after a file action */ ArchiveDir string /* If set, place to store files after they have been successfully processed */ ErrorDir string /* If set, place to store files if an action fails */ Dir string /* Directory to watch */ ProcessExistingFiles bool /* Process pre-existing files on startup */ Paranoia ParanoiaLevel /* Wait and see if file is finished writing */ Debug bool /* Verbose output */ ReportActions bool /* Log actions */ ReportErrors bool /* Error output */ TestingOptions []string /* Misc behaviour flags largely for testing */ // contains filtered or unexported fields }
A watcher config: a directory to watch, it's associated actions and any global options
type DummyAction ¶
type EchoAction ¶
type EchoAction struct { }
type ParanoiaLevel ¶
type ParanoiaLevel int
type PostAction ¶
Click to show internal directories.
Click to hide internal directories.