middleware

package
v0.0.0-...-9139af7 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BodyLimit is the API body limit
	BodyLimit int

	// HandleError is the API error handler middleware function
	HandleError func(next http.Handler) http.Handler

	// Limit is the API body limit middleware function
	Limit func(next http.Handler) http.Handler

	// Authenticate is the API authenticator middleware function
	Authenticate func(token gojwttoken.Token) func(next http.Handler) http.Handler

	// AuthenticateAccessToken is the API authenticator middleware function for access tokens
	AuthenticateAccessToken func(next http.Handler) http.Handler

	// AuthenticateRefreshToken is the API authenticator middleware function for refresh tokens
	AuthenticateRefreshToken func(next http.Handler) http.Handler

	// Validate is the API request validator middleware function
	Validate func(
		body interface{},
		auxiliaryValidatorFns ...interface{},
	) func(next http.Handler) http.Handler
)
View Source
var (
	// EnvBodyLimit is the environment variable key for the body limit
	EnvBodyLimit = "URU_FRAMEWORKS_SECURE_NOTES_BODY_LIMIT"
)

Functions

func Load

func Load()

Load loads the API middlewares

Types

This section is empty.

Jump to

Keyboard shortcuts

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