20 lines
267 B
Go
20 lines
267 B
Go
package server
|
|
|
|
import (
|
|
cuc "git.loafle.net/commons/util-go/context"
|
|
)
|
|
|
|
type ServerCtx interface {
|
|
cuc.Context
|
|
}
|
|
|
|
func NewServerCtx(parent cuc.Context) ServerCtx {
|
|
return &serverCtx{
|
|
Context: cuc.NewContext(parent),
|
|
}
|
|
}
|
|
|
|
type serverCtx struct {
|
|
cuc.Context
|
|
}
|