overflow_probes/client/central/data/client_handlers.go

29 lines
644 B
Go
Raw Normal View History

2017-12-02 03:13:08 +00:00
package data
2017-12-01 16:17:44 +00:00
import (
"git.loafle.net/commons_go/logging"
crc "git.loafle.net/commons_go/rpc/client"
oogwc "git.loafle.net/overflow/overflow_gateway_websocket/client"
)
2017-12-08 08:31:45 +00:00
func newClientHandler() oogwc.ClientHandler {
2017-12-01 16:17:44 +00:00
ch := &ClientHandlers{}
2017-12-08 08:31:45 +00:00
ch.ClientHandler = oogwc.NewClientHandler(nil)
2017-12-01 16:17:44 +00:00
return ch
}
type ClientHandlers struct {
oogwc.ClientHandler
}
func (ch *ClientHandlers) Init(clientCTX crc.ClientContext) error {
2018-03-21 10:22:13 +00:00
logging.Logger().Infof("Probe Data: client has been initialized")
2017-12-01 16:17:44 +00:00
return nil
}
func (ch *ClientHandlers) Destroy(clientCTX crc.ClientContext) {
2018-03-21 10:22:13 +00:00
logging.Logger().Infof("Probe Data: client has been destroyed")
2017-12-01 16:17:44 +00:00
}