overflow_discovery/client/client_handlers.go
crusader 95adf7ec26 ing
2017-11-30 19:16:55 +09:00

20 lines
365 B
Go

package client
import (
"git.loafle.net/commons_go/rpc"
crc "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 {
crc.ClientHandlers
}