summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/server.go b/server.go
index 8cefe1de..f8b0d64b 100644
--- a/server.go
+++ b/server.go
@@ -7,10 +7,10 @@ import (
)
const (
- // EventPoolConstruct triggered when server creates new pool.
+ // EventServerStart triggered when server creates new pool.
EventServerStart = iota + 200
- // EventPoolConstruct triggered when server creates new pool.
+ // EventServerStop triggered when server creates new pool.
EventServerStop
// EventServerFailure triggered when server is unable to replace dead pool.
@@ -23,7 +23,7 @@ const (
EventPoolDestruct
)
-// Service manages pool creation and swapping.
+// Server manages pool creation and swapping.
type Server struct {
// configures server, pool, cmd creation and factory.
cfg *ServerConfig
@@ -50,7 +50,7 @@ func NewServer(cfg *ServerConfig) *Server {
return &Server{cfg: cfg}
}
-// AddListener attaches server event watcher.
+// Listen attaches server event watcher.
func (s *Server) Listen(l func(event int, ctx interface{})) {
s.mul.Lock()
defer s.mul.Unlock()