summaryrefslogtreecommitdiff
path: root/pkg/worker_watcher/container/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-10 20:00:22 +0300
committerValery Piashchynski <[email protected]>2021-02-10 20:00:22 +0300
commitae3dd0c3672217be0b3fb4042ef650477fba108b (patch)
treeda5b08308e5aff50a102f41e254ee3620d41550e /pkg/worker_watcher/container/interface.go
parentda64d9fbab7d73e203e7dbbb9503f4d422feaab0 (diff)
Rewrite container for the workers
Update tests
Diffstat (limited to 'pkg/worker_watcher/container/interface.go')
-rw-r--r--pkg/worker_watcher/container/interface.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/worker_watcher/container/interface.go b/pkg/worker_watcher/container/interface.go
new file mode 100644
index 00000000..bb66897f
--- /dev/null
+++ b/pkg/worker_watcher/container/interface.go
@@ -0,0 +1,9 @@
+package container
+
+import "github.com/spiral/roadrunner/v2/pkg/worker"
+
+type Vector interface {
+ Enqueue(worker.BaseProcess)
+ Dequeue() (worker.BaseProcess, bool)
+ Destroy()
+}