2017-12-05 10:02:58 +00:00
|
|
|
package client
|
2017-12-05 08:21:47 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
crc "git.loafle.net/commons_go/rpc/client"
|
|
|
|
crr "git.loafle.net/commons_go/rpc/registry"
|
|
|
|
oopcc "git.loafle.net/overflow/overflow_probe_container/client"
|
|
|
|
)
|
|
|
|
|
|
|
|
func New(addr string, rpcInvoker crr.RPCInvoker) crc.Client {
|
|
|
|
ch := oopcc.NewClientHandler(rpcInvoker)
|
|
|
|
socketHandler := NewSocketHandler()
|
|
|
|
|
|
|
|
c := oopcc.New(addr, ch, socketHandler)
|
|
|
|
|
|
|
|
return c
|
|
|
|
}
|