overflow_gateway_websocket/client/client_handlers.go

20 lines
388 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 (
2017-12-01 07:02:55 +00:00
crc "git.loafle.net/commons_go/rpc/client"
crpj "git.loafle.net/commons_go/rpc/protocol/json"
2017-12-01 07:53:22 +00:00
crr "git.loafle.net/commons_go/rpc/registry"
2017-11-29 10:07:49 +00:00
)
2017-12-01 07:53:22 +00:00
func NewClientHandler(rpcInvoker crr.RPCInvoker) ClientHandler {
2017-11-29 10:07:49 +00:00
ch := &ClientHandlers{}
2017-12-01 07:53:22 +00:00
ch.RPCInvoker = rpcInvoker
2017-12-01 07:02:55 +00:00
ch.Codec = crpj.NewClientCodec()
2017-11-29 10:07:49 +00:00
return ch
}
type ClientHandlers struct {
2017-12-01 07:02:55 +00:00
crc.ClientHandlers
2017-11-29 10:07:49 +00:00
}