21 lines
306 B
Go
21 lines
306 B
Go
|
package rpc
|
||
|
|
||
|
import (
|
||
|
cuc "git.loafle.net/commons_go/util/context"
|
||
|
)
|
||
|
|
||
|
type ServletContext interface {
|
||
|
cuc.Context
|
||
|
}
|
||
|
|
||
|
type servletContext struct {
|
||
|
cuc.Context
|
||
|
}
|
||
|
|
||
|
func newServletContext(parent cuc.Context) ServletContext {
|
||
|
sCTX := &servletContext{}
|
||
|
sCTX.Context = cuc.NewContext(parent)
|
||
|
|
||
|
return sCTX
|
||
|
}
|