21 lines
329 B
Go
21 lines
329 B
Go
|
package servlet
|
||
|
|
||
|
import (
|
||
|
cwf "git.loafle.net/commons_go/websocket_fasthttp"
|
||
|
)
|
||
|
|
||
|
type ServletContext interface {
|
||
|
cwf.SocketContext
|
||
|
}
|
||
|
|
||
|
func NewServletContext(socketCTX cwf.SocketContext) SocketContext {
|
||
|
sCTX := &servletContext{}
|
||
|
sCTX.SocketContext = socketCTX
|
||
|
|
||
|
return sCTX
|
||
|
}
|
||
|
|
||
|
type servletContext struct {
|
||
|
cwf.SocketContext
|
||
|
}
|