middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAdmin

func IsAdmin(next http.Handler) http.Handler

func IsCustomer

func IsCustomer(next http.Handler) http.Handler

func IsLoggedIn

func IsLoggedIn(next http.Handler) http.Handler

func Logger

func Logger(next http.Handler) http.Handler

func LoggerWrapped

func LoggerWrapped(next http.Handler) http.Handler

Types

type Middleware

type Middleware func(http.Handler) http.Handler

func MiddlewareStack

func MiddlewareStack(ms ...Middleware) Middleware

MiddlewareStack chains multiple middlewares

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳