2017-12-01 13:01:46 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.loafle.net/commons_go/logging"
|
|
|
|
crc "git.loafle.net/commons_go/rpc/client"
|
|
|
|
crr "git.loafle.net/commons_go/rpc/registry"
|
|
|
|
oogwc "git.loafle.net/overflow/overflow_gateway_websocket/client"
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewClientHandler(rpcInvoker crr.RPCInvoker) oogwc.ClientHandler {
|
|
|
|
ch := &ClientHandlers{}
|
|
|
|
ch.ClientHandler = oogwc.NewClientHandler(rpcInvoker)
|
|
|
|
|
|
|
|
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("Auth: client has been initialized")
|
2017-12-01 13:01:46 +00:00
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ch *ClientHandlers) Destroy(clientCTX crc.ClientContext) {
|
2018-03-21 10:22:13 +00:00
|
|
|
logging.Logger().Infof("Auth: client has been destroyed")
|
2017-12-01 13:01:46 +00:00
|
|
|
}
|