overflow_gateway_websocket/client/client_handlers.go

20 lines
364 B
Go
Raw Normal View History

2017-11-27 11:54:15 +00:00
package client
2017-11-29 10:07:49 +00:00
import (
"git.loafle.net/commons_go/rpc"
"git.loafle.net/commons_go/rpc/client"
"git.loafle.net/commons_go/rpc/protocol/json"
)
2017-11-30 05:43:54 +00:00
func NewClientHandler(registry rpc.Registry) ClientHandler {
2017-11-29 10:07:49 +00:00
ch := &ClientHandlers{}
ch.RPCRegistry = registry
ch.Codec = json.NewClientCodec()
return ch
}
type ClientHandlers struct {
client.ClientHandlers
}