2017-11-27 11:54:15 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
cwf "git.loafle.net/commons_go/websocket_fasthttp"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ServerContext interface {
|
|
|
|
cwf.ServerContext
|
|
|
|
}
|
|
|
|
|
|
|
|
type serverContext struct {
|
|
|
|
cwf.ServerContext
|
|
|
|
}
|
|
|
|
|
2017-11-27 17:12:26 +00:00
|
|
|
func NewServerContext(serverCTX cwf.ServerContext) ServerContext {
|
2017-11-27 11:54:15 +00:00
|
|
|
sCTX := &serverContext{}
|
2017-11-27 17:12:26 +00:00
|
|
|
sCTX.ServerContext = serverCTX
|
2017-11-27 11:54:15 +00:00
|
|
|
|
|
|
|
return sCTX
|
|
|
|
}
|