21 lines
283 B
Go
21 lines
283 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
cuc "git.loafle.net/commons_go/util/context"
|
||
|
)
|
||
|
|
||
|
type ServerContext interface {
|
||
|
cuc.Context
|
||
|
}
|
||
|
|
||
|
type serverContext struct {
|
||
|
cuc.Context
|
||
|
}
|
||
|
|
||
|
func newServerContext() ServerContext {
|
||
|
sCTX := &serverContext{}
|
||
|
sCTX.Context = cuc.NewContext(nil)
|
||
|
|
||
|
return sCTX
|
||
|
}
|