overflow_probes/client/container/container.go

17 lines
382 B
Go
Raw Normal View History

2017-12-05 08:21:47 +00:00
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
}