fileboy/filegirl.go

24 lines
552 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"`
// convert to
TypesMap map[string]bool `yaml:"-"`
IncludeDirsMap map[string]bool `yaml:"-"`
ExceptDirsMap 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"`
}
2018-09-10 08:23:27 +00:00
}