websocket_fasthttp/server_context.go
crusader 4eaa31788d ing
2017-11-27 20:35:39 +09:00

21 lines
316 B
Go

package websocket_fasthttp
import (
cuc "git.loafle.net/commons_go/util/context"
)
type ServerContext interface {
cuc.Context
}
type serverContext struct {
cuc.Context
}
func NewServerContext(parent cuc.Context) ServerContext {
sCTX := &serverContext{}
sCTX.Context = cuc.NewContext(parent)
return sCTX
}