This commit is contained in:
crusader 2017-12-01 16:53:22 +09:00
parent f1974f7197
commit 51bbdb4429

View File

@ -1,14 +1,14 @@
package client package client
import ( import (
cr "git.loafle.net/commons_go/rpc"
crc "git.loafle.net/commons_go/rpc/client" crc "git.loafle.net/commons_go/rpc/client"
crpj "git.loafle.net/commons_go/rpc/protocol/json" crpj "git.loafle.net/commons_go/rpc/protocol/json"
crr "git.loafle.net/commons_go/rpc/registry"
) )
func NewClientHandler(registry cr.Registry) ClientHandler { func NewClientHandler(rpcInvoker crr.RPCInvoker) ClientHandler {
ch := &ClientHandlers{} ch := &ClientHandlers{}
ch.RPCRegistry = registry ch.RPCInvoker = rpcInvoker
ch.Codec = crpj.NewClientCodec() ch.Codec = crpj.NewClientCodec()
return ch return ch