2017-11-14 03:45:48 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2017-11-14 03:57:42 +00:00
|
|
|
oofws "git.loafle.net/overflow/overflow_gateway_websocket/server"
|
2017-11-14 03:45:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type ServerHandlers struct {
|
2017-11-14 03:57:42 +00:00
|
|
|
oofws.ServerHandlers
|
2017-11-14 03:45:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Init invoked before the server is started
|
|
|
|
// If you override ths method, must call
|
|
|
|
func (sh *ServerHandlers) Init() error {
|
|
|
|
if err := sh.ServerHandlers.Init(); nil != err {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sh *ServerHandlers) OnStart() {
|
|
|
|
sh.ServerHandlers.OnStart()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sh *ServerHandlers) OnStop() {
|
|
|
|
|
|
|
|
sh.ServerHandlers.OnStop()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sh *ServerHandlers) Validate() {
|
|
|
|
sh.ServerHandlers.Validate()
|
|
|
|
}
|