overflow_probes/client/container/container.go
crusader 9c89a2fe90 ing
2017-12-05 17:21:47 +09:00

17 lines
382 B
Go

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