middleware

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 CacheControlMiddleware

type CacheControlMiddleware struct {
	Version string
}

func (*CacheControlMiddleware) Middleware

func (m *CacheControlMiddleware) Middleware(next http.Handler) http.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