ing
This commit is contained in:
parent
c4e482999b
commit
b9805735de
|
@ -3,12 +3,14 @@ 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(addr string, registry rpc.Registry) *ClientHandlers {
|
||||
ch := &ClientHandlers{}
|
||||
ch.addr = addr
|
||||
ch.RPCRegistry = registry
|
||||
ch.Codec = json.NewClientCodec()
|
||||
|
||||
return ch
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user