2017-11-27 17:12:26 +00:00
|
|
|
package servlet
|
|
|
|
|
|
|
|
import (
|
|
|
|
cwf "git.loafle.net/commons_go/websocket_fasthttp"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ServletContext interface {
|
|
|
|
cwf.SocketContext
|
|
|
|
}
|
|
|
|
|
2017-11-28 10:07:31 +00:00
|
|
|
func NewServletContext(socketCTX cwf.SocketContext) ServletContext {
|
2017-11-27 17:12:26 +00:00
|
|
|
sCTX := &servletContext{}
|
|
|
|
sCTX.SocketContext = socketCTX
|
|
|
|
|
|
|
|
return sCTX
|
|
|
|
}
|
|
|
|
|
|
|
|
type servletContext struct {
|
|
|
|
cwf.SocketContext
|
|
|
|
}
|