middlewares

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCacheConfigMiddleware

func ApplyCacheConfigMiddleware(ctx *gin.Context)

ApplyCacheConfigMiddleware forces no caching policy via "Cache-control" header

func ApplyMiddlewareTokenAuth

func ApplyMiddlewareTokenAuth(authenticator jwtAuthenticator) gin.HandlerFunc

ApplyMiddlewareTokenAuth creates token authenticator

func NewHostFilter

func NewHostFilter() func(*gin.Context)

NewHostFilter returns instance of middleware allowing only requests with allowed domains in Host header

func NewLocalhostOnlyFilter

func NewLocalhostOnlyFilter() func(*gin.Context)

NewLocalhostOnlyFilter returns instance of middleware allowing only requests with local client IP.

Types

This section is empty.

Jump to

Keyboard shortcuts

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