middleware

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzMiddleware

type AuthzMiddleware struct {
	// contains filtered or unexported fields
}

func NewAuthzMiddleware

func NewAuthzMiddleware(logger *slog.Logger, mode, basicUser, basicPass string) *AuthzMiddleware

func (*AuthzMiddleware) Middleware

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

Middleware returns a mux middleware that extracts the token and fetches user info.

type RequestIDMiddleware

type RequestIDMiddleware struct {
	// contains filtered or unexported fields
}

func NewRequestIDMiddleware

func NewRequestIDMiddleware(logger *slog.Logger) *RequestIDMiddleware

func (*RequestIDMiddleware) Middleware

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

Jump to

Keyboard shortcuts

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