fileboy/filegirl.go
2019-04-01 16:18:01 +08:00

24 lines
552 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"`
// convert to
TypesMap map[string]bool `yaml:"-"`
IncludeDirsMap map[string]bool `yaml:"-"`
ExceptDirsMap map[string]bool `yaml:"-"`
}
Command struct {
Exec []string `yaml:"exec"`
DelayMillSecond int `yaml:"delayMillSecond"`
}
Notifier struct {
CallUrl string `yaml:"callUrl"`
}
}