rpc/servlet_context.go
crusader 84676e199e ing
2017-11-27 21:04:25 +09:00

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
}