overflow_gateway_websocket/server/server_context.go

21 lines
324 B
Go
Raw Normal View History

2017-11-27 11:54:15 +00:00
package server
import (
cwf "git.loafle.net/commons_go/websocket_fasthttp"
)
type ServerContext interface {
cwf.ServerContext
}
type serverContext struct {
cwf.ServerContext
}
2017-11-28 10:48:58 +00:00
func newServerContext(serverCTX cwf.ServerContext) ServerContext {
2017-11-27 11:54:15 +00:00
sCTX := &serverContext{}
2017-11-27 17:12:26 +00:00
sCTX.ServerContext = serverCTX
2017-11-27 11:54:15 +00:00
return sCTX
}