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 /server.go | |
parent | ec7975355a8acea632e5c9b7e912b3e9ad6907ca (diff) |
Declare general interfaces, Controllable and Attacher instead of private
First dirty working example of reload
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -23,6 +23,12 @@ const ( EventPoolDestruct ) +// Controllable defines the ability to attach rr controller. +type Controllable interface { + // Server represents RR server + Server() *Server +} + // Server manages pool creation and swapping. type Server struct { // configures server, pool, cmd creation and factory. |