fileboy/filegirl.go

32 lines
789 B
Go
Raw Normal View History

2018-09-10 08:23:27 +00:00
package main
type FileGirl struct {
Core struct {
Version int `yaml:"version"`
}
Monitor struct {
2019-04-01 08:18:01 +00:00
Types []string `yaml:"types"`
IncludeDirs []string `yaml:"includeDirs"`
ExceptDirs []string `yaml:"exceptDirs"`
2019-12-04 03:50:11 +00:00
Events []string `yaml:"events"`
2019-04-01 08:18:01 +00:00
// convert to
TypesMap map[string]bool `yaml:"-"`
IncludeDirsMap map[string]bool `yaml:"-"`
ExceptDirsMap map[string]bool `yaml:"-"`
2019-04-02 10:37:46 +00:00
DirsMap map[string]bool `yaml:"-"`
2019-12-06 03:51:28 +00:00
IncludeDirsRec map[string]bool `yaml:"-"`
2018-09-10 08:23:27 +00:00
}
Command struct {
2020-01-02 08:38:26 +00:00
Instruction []string `yaml:"instruction"`
Exec []string `yaml:"exec"`
DelayMillSecond int `yaml:"delayMillSecond"`
2020-01-02 08:38:26 +00:00
// convert to
InstructionMap map[string]bool `yaml:"-"`
2018-09-10 08:23:27 +00:00
}
2019-01-02 11:07:52 +00:00
Notifier struct {
CallUrl string `yaml:"callUrl"`
}
2018-09-10 08:23:27 +00:00
}