diff options
author | Valery Piashchynski <[email protected]> | 2020-02-20 14:14:11 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-20 14:14:11 +0300 |
commit | 2efcfeb89861ba981f980bb4503c31ca6c7a92e0 (patch) | |
tree | 22269a5cecc888cd26d6b1bd8477f30ea604ba21 /controller.go | |
parent | ec7975355a8acea632e5c9b7e912b3e9ad6907ca (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.go | 6 |
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 |