fileboy/filegirl.go
2020-01-02 16:38:26 +08:00

32 lines
789 B
Go

package main
type FileGirl struct {
Core struct {
Version int `yaml:"version"`
}
Monitor struct {
Types []string `yaml:"types"`
IncludeDirs []string `yaml:"includeDirs"`
ExceptDirs []string `yaml:"exceptDirs"`
Events []string `yaml:"events"`
// convert to
TypesMap map[string]bool `yaml:"-"`
IncludeDirsMap map[string]bool `yaml:"-"`
ExceptDirsMap map[string]bool `yaml:"-"`
DirsMap map[string]bool `yaml:"-"`
IncludeDirsRec map[string]bool `yaml:"-"`
}
Command struct {
Instruction []string `yaml:"instruction"`
Exec []string `yaml:"exec"`
DelayMillSecond int `yaml:"delayMillSecond"`
// convert to
InstructionMap map[string]bool `yaml:"-"`
}
Notifier struct {
CallUrl string `yaml:"callUrl"`
}
}