summaryrefslogtreecommitdiff
path: root/controller.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-04 19:24:25 +0300
committerWolfy-J <[email protected]>2019-05-04 19:24:25 +0300
commit2efc533f2aac215d487a80020b0f9bf4ae5209c3 (patch)
treea80a7a74dc4ca8c290b8b1bf1f6d24535b5ae3d7 /controller.go
parent726b31008e73ab83d0582305c28a8cf62322e47a (diff)
watchers renamed to controllers
Diffstat (limited to 'controller.go')
-rw-r--r--controller.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/controller.go b/controller.go
new file mode 100644
index 00000000..bda7ad6b
--- /dev/null
+++ b/controller.go
@@ -0,0 +1,10 @@
+package roadrunner
+
+// Controller observes pool state and decides if any worker must be destroyed.
+type Controller interface {
+ // Lock controller on given pool instance.
+ Attach(p Pool) Controller
+
+ // Detach pool watching.
+ Detach()
+}