diff options
author | Wolfy-J <[email protected]> | 2019-05-04 19:24:25 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-04 19:24:25 +0300 |
commit | 2efc533f2aac215d487a80020b0f9bf4ae5209c3 (patch) | |
tree | a80a7a74dc4ca8c290b8b1bf1f6d24535b5ae3d7 /controller.go | |
parent | 726b31008e73ab83d0582305c28a8cf62322e47a (diff) |
watchers renamed to controllers
Diffstat (limited to 'controller.go')
-rw-r--r-- | controller.go | 10 |
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() +} |