middleware

package
v0.0.0-...-0fc7a0e Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.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 Middleware

type Middleware struct {
	SessionManager *scs.SessionManager
}

func New

func New(sessionManager *scs.SessionManager) *Middleware

func (*Middleware) Cors

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

func (*Middleware) Logging

func (m *Middleware) Logging(logger *slog.Logger) mux.MiddlewareFunc

func (*Middleware) Recovery

func (m *Middleware) Recovery(logger *slog.Logger) mux.MiddlewareFunc

func (*Middleware) RequireAuthentication

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

func (*Middleware) SessionTimeoutMiddleware

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

Jump to

Keyboard shortcuts

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