Documentation ¶
Index ¶
- Constants
- Variables
- func AllControlPointPassFilter(group, path string, point *controller.ControlPoint) *controller.ControlPoint
- func NewRestViewRender() *restViewRender
- func NewTextTemplateViewRender(name string, prefix string, suffix string) *textTemplateViewRender
- func ParamInject(val reflect.Value, ctx gnet.ISessionCtx)
- type ControlPointFilter
- type ExpireSession
- type HttpBody
- type HttpCookie
- type HttpForm
- type HttpHeader
- type HttpParam
- type HttpServer
- type IHttpController
- type IViewRender
- type ModAndView
Constants ¶
View Source
const ( InjectParam = "p" InjectForm = "f" InjectHeader = "h" InjectCookie = "c" )
View Source
const (
HttpController = "HttpController"
)
Variables ¶
View Source
var IHttpControllerType = reflect.TypeOf((*IHttpController)(nil)).Elem()
Functions ¶
func AllControlPointPassFilter ¶
func AllControlPointPassFilter(group, path string, point *controller.ControlPoint) *controller.ControlPoint
func NewRestViewRender ¶
func NewRestViewRender() *restViewRender
func ParamInject ¶
func ParamInject(val reflect.Value, ctx gnet.ISessionCtx)
Types ¶
type ControlPointFilter ¶
type ControlPointFilter func(group, path string, point *controller.ControlPoint) *controller.ControlPoint
type ExpireSession ¶
type ExpireSession struct {
// contains filtered or unexported fields
}
func NewExpireSession ¶
func NewExpireSession(ctx gnet.ISessionCtx, activeTime time.Time) *ExpireSession
type HttpBody ¶
type HttpBody struct {
// contains filtered or unexported fields
}
func NewHttpBody ¶
type HttpCookie ¶
func NewHttpCookie ¶
func NewHttpCookie(cookies []*http.Cookie) *HttpCookie
type HttpForm ¶
func NewHttpForm ¶
type HttpHeader ¶
func NewHttpHeader ¶
func NewHttpHeader(headers map[string][]string) *HttpHeader
type HttpParam ¶
func NewHttpParam ¶
type HttpServer ¶
type HttpServer struct { gioc.IBeanCondition gioc.IConfigBase // contains filtered or unexported fields }
func NewHttpServer ¶
func NewHttpServer(cfgBase string, filter ControlPointFilter) *HttpServer
func (*HttpServer) BeanStart ¶
func (this *HttpServer) BeanStart()
func (*HttpServer) BeanStop ¶
func (this *HttpServer) BeanStop()
type IHttpController ¶
type IHttpController interface { controller.IController ViewRender() IViewRender }
func NewHttpController ¶
func NewHttpController(group string, viewRender IViewRender) IHttpController
func NewHttpRestController ¶
func NewHttpRestController(group string) IHttpController
type IViewRender ¶
type ModAndView ¶
type ModAndView struct {
// contains filtered or unexported fields
}
func NewModAndView ¶
func NewModAndView(view string, mod interface{}) *ModAndView
Click to show internal directories.
Click to hide internal directories.