diff options
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() +} |