middleware

package
v3.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 AuthChecker func(lc *context.LuxContext, authorizationHeader string, tokenCookies ...*http.Cookie) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL