Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
package messaging
///////////////////////////////////////////////////////////////////////////////
type WatcherCommand struct {
Instruction WatcherInstruction
Details string
}
type WatcherInstruction int
func (this WatcherInstruction) String() string {
switch this {
case WatcherPause:
return "Pause"
case WatcherResume:
return "Resume"
case WatcherIgnore:
return "Ignore"
case WatcherReinstate:
return "Reinstate"
case WatcherAdjustRoot:
return "AdjustRoot"
case WatcherExecute:
return "Execute"
case WatcherStop:
return "Stop"
default:
return "UNKNOWN INSTRUCTION"
}
}
const (
WatcherPause WatcherInstruction = iota
WatcherResume
WatcherIgnore
WatcherReinstate
WatcherAdjustRoot
WatcherExecute
WatcherStop
)
///////////////////////////////////////////////////////////////////////////////
type Folders map[string]*Folder
type Folder struct {
Path string // key
Root string
Ignored bool
Disabled bool
BuildTags []string
TestArguments []string
}
///////////////////////////////////////////////////////////////////////////////