2017-11-29 00:36:19 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2017-12-01 08:29:54 +00:00
|
|
|
crr "git.loafle.net/commons_go/rpc/registry"
|
2017-11-29 00:36:19 +00:00
|
|
|
"git.loafle.net/commons_go/rpc/server"
|
|
|
|
)
|
|
|
|
|
2017-12-01 08:29:54 +00:00
|
|
|
func newRPCServletHandler(rpcInvoker crr.RPCInvoker) server.ServletHandler {
|
2017-11-29 00:36:19 +00:00
|
|
|
sh := &RPCServletHandlers{}
|
2017-12-01 08:29:54 +00:00
|
|
|
sh.RPCInvoker = rpcInvoker
|
2017-11-29 00:36:19 +00:00
|
|
|
|
|
|
|
return sh
|
|
|
|
}
|
|
|
|
|
|
|
|
type RPCServletHandlers struct {
|
|
|
|
server.ServletHandlers
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sh *RPCServletHandlers) Validate() {
|
|
|
|
sh.ServletHandlers.Validate()
|
|
|
|
|
|
|
|
}
|