websocket_fasthttp/server_context.go

21 lines
295 B
Go
Raw Normal View History

2017-11-27 11:19:19 +00:00
package websocket_fasthttp
import (
cuc "git.loafle.net/commons_go/util/context"
)
type ServerContext interface {
cuc.Context
}
type serverContext struct {
cuc.Context
}
2017-11-27 14:30:18 +00:00
func newServerContext() ServerContext {
2017-11-27 11:19:19 +00:00
sCTX := &serverContext{}
2017-11-27 14:30:18 +00:00
sCTX.Context = cuc.NewContext(nil)
2017-11-27 11:19:19 +00:00
return sCTX
}