Refactor RegisterHTTPFunc

This commit is contained in:
ionutboangiu
2021-04-01 17:53:17 +03:00
committed by Dan Christian Bogos
parent 40b93a5b14
commit cb2585837a
4 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ import (
type Server interface {
RpcRegister(rcvr interface{})
RpcRegisterName(name string, rcvr interface{})
RegisterHttpFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
RegisterHTTPFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
RegisterHttpHandler(pattern string, handler http.Handler)
BiRPCRegisterName(method string, handlerFunc interface{})
}