summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 22:24:47 +0300
committerWolfy-J <[email protected]>2018-06-13 22:24:47 +0300
commitdf4c11fb59b8ffca369f14eededda82884ee4dad (patch)
treec59b4af544cf11008739313a54b878cc20db793d /service/http/service.go
parent235adef3eef67888e4c391b28cedadfb3f8874e3 (diff)
more tests + rpc tests
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/http/service.go b/service/http/service.go
index 1823df53..8485cba6 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -9,8 +9,8 @@ import (
"sync"
)
-// Name contains default svc name.
-const Name = "http"
+// ID contains default svc name.
+const ID = "http"
// must return true if request/response pair is handled withing the middleware.
type middleware func(w http.ResponseWriter, r *http.Request) bool
@@ -56,9 +56,9 @@ func (s *Service) Init(cfg service.Config, c service.Container) (bool, error) {
s.cfg = config
// registering http RPC interface
- if r, ok := c.Get(rpc.Name); ok >= service.StatusConfigured {
+ if r, ok := c.Get(rpc.ID); ok >= service.StatusConfigured {
if h, ok := r.(*rpc.Service); ok {
- h.Register(Name, &rpcServer{s})
+ h.Register(ID, &rpcServer{s})
}
}