2017-11-27 12:04:25 +00:00
|
|
|
package rpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
cuc "git.loafle.net/commons_go/util/context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ServletContext interface {
|
|
|
|
cuc.Context
|
|
|
|
}
|
|
|
|
|
|
|
|
type servletContext struct {
|
|
|
|
cuc.Context
|
|
|
|
}
|
|
|
|
|
2017-11-27 16:22:02 +00:00
|
|
|
func newServletContext(parent cuc.Context) ServletContext {
|
2017-11-27 12:04:25 +00:00
|
|
|
sCTX := &servletContext{}
|
|
|
|
sCTX.Context = cuc.NewContext(parent)
|
|
|
|
|
|
|
|
return sCTX
|
|
|
|
}
|