aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/smartystreets/goconvey/web/server/messaging/messages.go
diff options
context:
space:
mode:
authorunknwon <u@gogs.io>2019-07-28 16:03:54 -0700
committerunknwon <u@gogs.io>2019-07-28 16:03:54 -0700
commit025972ef643fa7628551529c2fd145e2a184465b (patch)
tree1066a33af394fc4fb7bdbcaa2b2fe29875576877 /vendor/github.com/smartystreets/goconvey/web/server/messaging/messages.go
parent00a3e368b482193f1a457586ab4152ffacc02fab (diff)
vendor: update missing test deps for ci
Diffstat (limited to 'vendor/github.com/smartystreets/goconvey/web/server/messaging/messages.go')
-rw-r--r--vendor/github.com/smartystreets/goconvey/web/server/messaging/messages.go56
1 files changed, 56 insertions, 0 deletions
diff --git a/vendor/github.com/smartystreets/goconvey/web/server/messaging/messages.go b/vendor/github.com/smartystreets/goconvey/web/server/messaging/messages.go
new file mode 100644
index 00000000..7a920911
--- /dev/null
+++ b/vendor/github.com/smartystreets/goconvey/web/server/messaging/messages.go
@@ -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
+}
+
+///////////////////////////////////////////////////////////////////////////////