messages.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package messaging
  2. ///////////////////////////////////////////////////////////////////////////////
  3. type WatcherCommand struct {
  4. Instruction WatcherInstruction
  5. Details string
  6. }
  7. type WatcherInstruction int
  8. func (this WatcherInstruction) String() string {
  9. switch this {
  10. case WatcherPause:
  11. return "Pause"
  12. case WatcherResume:
  13. return "Resume"
  14. case WatcherIgnore:
  15. return "Ignore"
  16. case WatcherReinstate:
  17. return "Reinstate"
  18. case WatcherAdjustRoot:
  19. return "AdjustRoot"
  20. case WatcherExecute:
  21. return "Execute"
  22. case WatcherStop:
  23. return "Stop"
  24. default:
  25. return "UNKNOWN INSTRUCTION"
  26. }
  27. }
  28. const (
  29. WatcherPause WatcherInstruction = iota
  30. WatcherResume
  31. WatcherIgnore
  32. WatcherReinstate
  33. WatcherAdjustRoot
  34. WatcherExecute
  35. WatcherStop
  36. )
  37. ///////////////////////////////////////////////////////////////////////////////
  38. type Folders map[string]*Folder
  39. type Folder struct {
  40. Path string // key
  41. Root string
  42. Ignored bool
  43. Disabled bool
  44. BuildTags []string
  45. TestArguments []string
  46. }
  47. ///////////////////////////////////////////////////////////////////////////////