22 lines
380 B
Go
22 lines
380 B
Go
package server
|
|
|
|
import (
|
|
cuc "git.loafle.net/commons_go/util/context"
|
|
cwf "git.loafle.net/commons_go/websocket_fasthttp"
|
|
)
|
|
|
|
type ServerContext interface {
|
|
cwf.ServerContext
|
|
}
|
|
|
|
type serverContext struct {
|
|
cwf.ServerContext
|
|
}
|
|
|
|
func NewServerContext(parent cuc.Context) ServerContext {
|
|
sCTX := &serverContext{}
|
|
sCTX.ServerContext = cwf.NewServerContext(parent)
|
|
|
|
return sCTX
|
|
}
|