middleware

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache added in v1.13.1

func Cache(next http.Handler) http.Handler

Types

type AuthMiddleware

type AuthMiddleware struct {
	Logger       *slog.Logger
	SessionStore *store.SessionStore
}

func (*AuthMiddleware) Middleware

func (m *AuthMiddleware) Middleware(next http.Handler) http.Handler

type Handler added in v1.14.1

type Handler func(http.Handler) http.Handler

func Chain added in v1.14.1

func Chain(handlers ...Handler) Handler

type LoggingMiddleware

type LoggingMiddleware struct {
	Logger *slog.Logger
}

func (*LoggingMiddleware) Middleware

func (m *LoggingMiddleware) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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