summaryrefslogtreecommitdiff
path: root/server.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 /server.go
parentec7975355a8acea632e5c9b7e912b3e9ad6907ca (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.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/server.go b/server.go
index 8f8e9382..406bc0a0 100644
--- a/server.go
+++ b/server.go
@@ -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.