overflow_probes/manager/container/client/client.go
crusader 47d4a0b57d ing
2017-12-05 19:02:58 +09:00

17 lines
379 B
Go

package client
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
}