34 lines
561 B
Go
34 lines
561 B
Go
package server
|
|
|
|
import (
|
|
cwfs "git.loafle.net/commons_go/websocket_fasthttp/server"
|
|
)
|
|
|
|
type ServerHandlers struct {
|
|
cwfs.ServerHandlers
|
|
}
|
|
|
|
// 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()
|
|
}
|