21 lines
324 B
Go
21 lines
324 B
Go
package server
|
|
|
|
import (
|
|
cwf "git.loafle.net/commons_go/websocket_fasthttp"
|
|
)
|
|
|
|
type ServerContext interface {
|
|
cwf.ServerContext
|
|
}
|
|
|
|
type serverContext struct {
|
|
cwf.ServerContext
|
|
}
|
|
|
|
func NewServerContext(serverCTX cwf.ServerContext) ServerContext {
|
|
sCTX := &serverContext{}
|
|
sCTX.ServerContext = serverCTX
|
|
|
|
return sCTX
|
|
}
|