summaryrefslogtreecommitdiff
path: root/pkg/worker_watcher/container
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-11 13:57:41 +0300
committerValery Piashchynski <[email protected]>2021-02-11 13:57:41 +0300
commit509abc76a0f7b88678de67843ca79d9052ad8dd6 (patch)
tree92727c3ff8087597bac65eee2c26c9484c98be7f /pkg/worker_watcher/container
parentf007fcd5f352d1f83bfdfd2dd47d063d55f9db50 (diff)
Doc comments
Diffstat (limited to 'pkg/worker_watcher/container')
-rw-r--r--pkg/worker_watcher/container/interface.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/worker_watcher/container/interface.go b/pkg/worker_watcher/container/interface.go
index bb66897f..532bace9 100644
--- a/pkg/worker_watcher/container/interface.go
+++ b/pkg/worker_watcher/container/interface.go
@@ -2,8 +2,12 @@ package container
import "github.com/spiral/roadrunner/v2/pkg/worker"
+// Vector interface represents vector container
type Vector interface {
+ // Enqueue used to put worker to the vector
Enqueue(worker.BaseProcess)
+ // Dequeue used to get worker from the vector
Dequeue() (worker.BaseProcess, bool)
+ // Destroy used to stop releasing the workers
Destroy()
}