Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MiddlewareList collections.List[IMiddleware]
MiddlewareList 已注册的中间件集合
Functions ¶
func SetNextMiddleware ¶
func SetNextMiddleware(curMiddleware, nextMiddleware IMiddleware)
SetNextMiddleware 设置下一个管道
Types ¶
type ApiResponse ¶
type ApiResponse struct {
IMiddleware
}
func (*ApiResponse) Invoke ¶
func (receiver *ApiResponse) Invoke(httpContext *context.HttpContext)
type Cors ¶
type Cors struct {
IMiddleware
}
func (*Cors) Invoke ¶
func (receiver *Cors) Invoke(httpContext *context.HttpContext)
type IMiddleware ¶
type IMiddleware interface {
Invoke(httpContext *context.HttpContext)
}
IMiddleware 中间件
type Session ¶
type Session struct {
IMiddleware
}
func (*Session) Invoke ¶
func (receiver *Session) Invoke(httpContext *context.HttpContext)
type UrlRewriting ¶
type UrlRewriting struct {
IMiddleware
}
func (*UrlRewriting) Invoke ¶
func (receiver *UrlRewriting) Invoke(httpContext *context.HttpContext)
Click to show internal directories.
Click to hide internal directories.