2018-04-03 08:55:48 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
cuc "git.loafle.net/commons/util-go/context"
|
|
|
|
)
|
|
|
|
|
2018-04-04 04:01:26 +00:00
|
|
|
type ServerCtx interface {
|
2018-04-03 08:55:48 +00:00
|
|
|
cuc.Context
|
|
|
|
}
|
|
|
|
|
2018-04-04 04:01:26 +00:00
|
|
|
func NewServerCtx(parent cuc.Context) ServerCtx {
|
|
|
|
return &serverCtx{
|
|
|
|
Context: cuc.NewContext(parent),
|
2018-04-03 08:55:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-04 04:01:26 +00:00
|
|
|
type serverCtx struct {
|
|
|
|
cuc.Context
|
2018-04-03 08:55:48 +00:00
|
|
|
}
|