overflow_gateway_websocket/client/client_handlers.go
crusader 7a72c4a5f6 ing
2017-11-30 14:43:54 +09:00

20 lines
364 B
Go

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