refactor: rename GetHandler to GetHttpRouter
This commit is contained in:
parent
3d12cff53e
commit
d79455c68c
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
type HTTPService interface {
|
type HTTPService interface {
|
||||||
Service
|
Service
|
||||||
GetHandler() *httprouter.Router
|
GetHttpRouter() *httprouter.Router
|
||||||
SetHttpHandler(handler HTTPHandler)
|
SetHttpHandler(handler HTTPHandler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -336,5 +336,5 @@ func (n *NodeImpl) ConnectionTracker() *sync.WaitGroup {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *NodeImpl) HTTPRouter() *httprouter.Router {
|
func (n *NodeImpl) HTTPRouter() *httprouter.Router {
|
||||||
return n.services.HTTP().GetHandler()
|
return n.services.HTTP().GetHttpRouter()
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ func NewHTTP(node interfaces.Node) interfaces.HTTPService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *HTTPImpl) GetHandler() *httprouter.Router {
|
func (h *HTTPImpl) GetHttpRouter() *httprouter.Router {
|
||||||
mux := jape.Mux(map[string]jape.Handler{
|
mux := jape.Mux(map[string]jape.Handler{
|
||||||
"GET /s5/version": h.versionHandler,
|
"GET /s5/version": h.versionHandler,
|
||||||
"GET /s5/p2p": h.p2pHandler,
|
"GET /s5/p2p": h.p2pHandler,
|
||||||
|
|
Loading…
Reference in New Issue