overflow_probes/client/container/client_handlers.go

31 lines
689 B
Go
Raw Normal View History

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"
)
type ClientHandlers struct {
oopcc.ClientHandler
}
func (ch *ClientHandlers) Init(clientCTX crc.ClientContext) error {
return ch.ClientHandler.Init(clientCTX)
}
func (ch *ClientHandlers) Destroy(clientCTX crc.ClientContext) {
ch.ClientHandler.Destroy(clientCTX)
}
func (ch *ClientHandlers) Validate() {
ch.ClientHandler.Validate()
}
func NewClientHandler(rpcInvoker crr.RPCInvoker) oopcc.ClientHandler {
ch := &ClientHandlers{}
ch.ClientHandler = oopcc.NewClientHandler(rpcInvoker)
return ch
}