overflow_gateway_websocket/servlet/servlet_handlers.go

47 lines
1.0 KiB
Go
Raw Normal View History

2017-11-10 13:24:10 +00:00
package servlet
import (
cwf "git.loafle.net/commons_go/websocket_fasthttp"
)
type ServletHandlers struct {
cwf.SocketHandlers
}
2017-11-13 16:50:22 +00:00
// func (sh *ServletHandlers) Init() error {
// if err := sh.SocketHandlers.Init(); nil != err {
// return err
// }
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// return nil
// }
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// // OnConnect invoked when client is connected
// // If you override ths method, must call
// func (sh *ServletHandlers) OnConnect(soc *cwf.Socket) {
// sh.SocketHandlers.OnConnect(soc)
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// }
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// // OnDisconnect invoked when client is disconnected
// // If you override ths method, must call
// func (sh *ServletHandlers) OnDisconnect(soc *cwf.Socket) {
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// sh.SocketHandlers.OnDisconnect(soc)
// }
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// // Destroy invoked when server is stopped
// // If you override ths method, must call
// func (sh *ServletHandlers) Destroy() {
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// sh.SocketHandlers.Destroy()
// }
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// func (sh *ServletHandlers) Validate() {
// sh.SocketHandlers.Validate()
2017-11-10 13:24:10 +00:00
2017-11-13 16:50:22 +00:00
// if "" == sh.EntryPath {
// logging.Logger().Panic("Geteway Server: The path of entry must be specified")
// }
// }