diff options
author | Wolfy-J <[email protected]> | 2018-06-03 12:54:43 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-03 12:54:43 +0300 |
commit | 36ea77baa5a41de10bd604cd0e5b5b3cafaaeb64 (patch) | |
tree | 13ca8abd454a6668f490eec2e44b1520bd3953fe /server.go | |
parent | b02611b7266589d888e054a1d2e4432ae370617d (diff) |
service bus, http service, rpc bus, cli commands, new configs
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -8,13 +8,13 @@ import ( const ( // EventNewPool triggered when server creates new pool. - EventNewPool = 3 + EventNewPool = 60 // EventDestroyPool triggered when server destroys existed pool. - EventDestroyPool = 4 + EventDestroyPool = 61 ) -// Server manages pool creation and swapping. +// Service manages pool creation and swapping. type Server struct { // observes pool events (can be attached to multiple pools at the same time) observer func(event int, ctx interface{}) @@ -35,8 +35,8 @@ type Server struct { pool Pool } -// NewRouter creates new router. Make sure to call configure before the usage. -func NewRouter(cmd func() *exec.Cmd, factory Factory) *Server { +// NewServer creates new router. Make sure to call configure before the usage. +func NewServer(cmd func() *exec.Cmd, factory Factory) *Server { return &Server{ cmd: cmd, factory: factory, |