middleware

package
v0.0.0-...-7a7783f Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(next http.HandlerFunc) http.HandlerFunc

Logger is the middleware function for logging requests

func RequireAuthentication

func RequireAuthentication(a *app.App, next http.HandlerFunc, admin bool) http.HandlerFunc

RequireAuthentication is the middleware function for routes that require a bearer token

func RequireRefreshToken

func RequireRefreshToken(a *app.App, next http.HandlerFunc) http.HandlerFunc

RequireRefreshToken is the middleware function for routes that require a refresh token

func SetCache

func SetCache(next http.Handler) http.Handler

SetCache is the middleware function for setting the cache header on file requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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