Documentation ¶
Index ¶
- Variables
- func ApplyRequests(ctx *context.LuxContext, middlewares []Request) error
- func ApplyResponses(ctx *context.LuxContext, middlewares []Response) error
- type AllowCredentialsMiddleware
- type AllowDynamicIPsMiddleware
- type AllowDynamicPortsMiddleware
- type AllowHeadersMiddleware
- type AllowMethodsMiddleware
- type AllowOriginsMiddleware
- type AllowStaticIpsMiddleware
- type AllowStaticPortsMiddleware
- type AuthChecker
- type AuthMiddleware
- type BlockDynamicIPsMiddleware
- type BlockDynamicPortsMiddleware
- type BlockStaticIPsMiddleware
- type BlockStaticPortsMiddleware
- type BrotliResponseMiddleware
- type GzipResponseMiddleware
- type Request
- type Response
- type SnappyResponseMiddleware
Constants ¶
This section is empty.
Variables ¶
View Source
var AccessControl = accessControl{}
View Source
var CompressResponse = compressResponse{}
View Source
var SetAllow = setAllow{}
Functions ¶
func ApplyRequests ¶
func ApplyRequests(ctx *context.LuxContext, middlewares []Request) error
func ApplyResponses ¶
func ApplyResponses(ctx *context.LuxContext, middlewares []Response) error
Types ¶
type AllowCredentialsMiddleware ¶ added in v3.1.0
type AllowCredentialsMiddleware Response
type AllowDynamicIPsMiddleware ¶ added in v3.1.0
type AllowDynamicIPsMiddleware Request
type AllowDynamicPortsMiddleware ¶ added in v3.1.0
type AllowDynamicPortsMiddleware Request
type AllowHeadersMiddleware ¶ added in v3.1.0
type AllowHeadersMiddleware Response
type AllowMethodsMiddleware ¶ added in v3.1.0
type AllowMethodsMiddleware Response
type AllowOriginsMiddleware ¶ added in v3.1.0
type AllowOriginsMiddleware Response
type AllowStaticIpsMiddleware ¶ added in v3.1.0
type AllowStaticIpsMiddleware Request
type AllowStaticPortsMiddleware ¶ added in v3.1.0
type AllowStaticPortsMiddleware Request
type AuthChecker ¶
type AuthMiddleware ¶ added in v3.1.0
type AuthMiddleware Request
func Auth ¶
func Auth(authChecker AuthChecker, tokenName ...string) AuthMiddleware
type BlockDynamicIPsMiddleware ¶ added in v3.1.0
type BlockDynamicIPsMiddleware Request
type BlockDynamicPortsMiddleware ¶ added in v3.1.0
type BlockDynamicPortsMiddleware Request
type BlockStaticIPsMiddleware ¶ added in v3.1.0
type BlockStaticIPsMiddleware Request
type BlockStaticPortsMiddleware ¶ added in v3.1.0
type BlockStaticPortsMiddleware Request
type BrotliResponseMiddleware ¶ added in v3.1.0
type BrotliResponseMiddleware Response
type GzipResponseMiddleware ¶ added in v3.1.0
type GzipResponseMiddleware Response
type Request ¶
type Request func(*context.LuxContext) (*context.LuxContext, int)
type Response ¶
type Response func(*context.LuxContext) (*context.LuxContext, error)
type SnappyResponseMiddleware ¶ added in v3.1.0
type SnappyResponseMiddleware Response
Click to show internal directories.
Click to hide internal directories.