middleware

package
v0.0.0-...-37234c6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSession = errors.New("no session found on request")
)

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

func ExtractUserID

func ExtractUserID(r *http.Request) (uint32, error)

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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