fileboy/filegirl.go

34 lines
870 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"`
2020-11-10 09:13:49 +00:00
ExceptTypes []string `yaml:"exceptTypes"`
2019-04-01 08:18:01 +00:00
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:"-"`
2020-11-10 09:13:49 +00:00
ExceptTypesMap map[string]bool `yaml:"-"`
2019-04-01 08:18:01 +00:00
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 {
Exec []string `yaml:"exec"`
DelayMillSecond int `yaml:"delayMillSecond"`
2018-09-10 08:23:27 +00:00
}
2019-01-02 11:07:52 +00:00
Notifier struct {
CallUrl string `yaml:"callUrl"`
}
2020-03-03 03:37:20 +00:00
Instruction []string `yaml:"instruction"`
// convert to
InstructionMap map[string]bool `yaml:"-"`
2018-09-10 08:23:27 +00:00
}