websocket_fasthttp/server_context.go

21 lines
316 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 11:35:39 +00:00
func NewServerContext(parent cuc.Context) ServerContext {
2017-11-27 11:19:19 +00:00
sCTX := &serverContext{}
2017-11-27 11:35:39 +00:00
sCTX.Context = cuc.NewContext(parent)
2017-11-27 11:19:19 +00:00
return sCTX
}