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 ¶
RoleMiddleware registers a middleware which reads the application header
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.