20 lines
364 B
Go
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
|
|
}
|