middleware

package
v0.0.0-...-d47f4a9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplicationMiddleware

func ApplicationMiddleware(queries *sqlc.Queries) gin.HandlerFunc

ApplicationMiddleware fills the context with the current application

func LanguagePreferencesMiddleware

func LanguagePreferencesMiddleware(loaders *loaders.BatchLoaders) func(*gin.Context)

LanguagePreferencesMiddleware extracts language preferences from headers and puts them into context Note that this uses the ApplicationMiddleware so it needs to be called after

func RoleMiddleware

func RoleMiddleware(ctx *gin.Context)

RoleMiddleware registers a middleware which reads the application header

Types

This section is empty.

Jump to

Keyboard shortcuts

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