overflow_probe_container/server/rpc_servlet_handlers.go
crusader 6614bd5489 ing
2017-12-05 14:40:31 +09:00

25 lines
504 B
Go

package server
import (
crpj "git.loafle.net/commons_go/rpc/protocol/json"
crr "git.loafle.net/commons_go/rpc/registry"
"git.loafle.net/commons_go/rpc/server"
)
func NewRPCServletHandler(rpcInvoker crr.RPCInvoker) server.ServletHandler {
sh := &RPCServletHandlers{}
sh.RPCInvoker = rpcInvoker
sh.RegisterCodec(crpj.Name, crpj.NewServerCodec())
return sh
}
type RPCServletHandlers struct {
server.ServletHandlers
}
func (sh *RPCServletHandlers) Validate() {
sh.ServletHandlers.Validate()
}