summaryrefslogtreecommitdiff
path: root/controller.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-20 14:14:11 +0300
committerValery Piashchynski <[email protected]>2020-02-20 14:14:11 +0300
commit2efcfeb89861ba981f980bb4503c31ca6c7a92e0 (patch)
tree22269a5cecc888cd26d6b1bd8477f30ea604ba21 /controller.go
parentec7975355a8acea632e5c9b7e912b3e9ad6907ca (diff)
Declare general interfaces, Controllable and Attacher instead of private
First dirty working example of reload
Diffstat (limited to 'controller.go')
-rw-r--r--controller.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/controller.go b/controller.go
index bda7ad6b..020ea4dd 100644
--- a/controller.go
+++ b/controller.go
@@ -8,3 +8,9 @@ type Controller interface {
// Detach pool watching.
Detach()
}
+
+// Attacher defines the ability to attach rr controller.
+type Attacher interface {
+ // Attach attaches controller to the service.
+ Attach(c Controller)
+} \ No newline at end of file