overflow_gateway_websocket/client/client_handlers.go
crusader 51bbdb4429 ing
2017-12-01 16:53:22 +09:00

20 lines
388 B
Go

package client
import (
crc "git.loafle.net/commons_go/rpc/client"
crpj "git.loafle.net/commons_go/rpc/protocol/json"
crr "git.loafle.net/commons_go/rpc/registry"
)
func NewClientHandler(rpcInvoker crr.RPCInvoker) ClientHandler {
ch := &ClientHandlers{}
ch.RPCInvoker = rpcInvoker
ch.Codec = crpj.NewClientCodec()
return ch
}
type ClientHandlers struct {
crc.ClientHandlers
}