middleware

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package middleware contains the Fiber request orchestration and context installation used by the API packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthFailureStatus

func AuthFailureStatus(ctx context.Context) int

func MissingGen3AuthHeader

func MissingGen3AuthHeader(ctx context.Context) bool

Types

type AuthzMiddleware

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

func NewAuthzMiddleware

func NewAuthzMiddleware(logger *slog.Logger, options Options) *AuthzMiddleware

func (*AuthzMiddleware) FiberMiddleware

func (m *AuthzMiddleware) FiberMiddleware() fiber.Handler

FiberMiddleware returns the request-wiring handler for access context and decisions.

type Options

type Options struct {
	Mode      string
	Evaluator authenticationEvaluator
}

type RequestIDMiddleware

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

func NewRequestIDMiddleware

func NewRequestIDMiddleware(logger *slog.Logger) *RequestIDMiddleware

func (*RequestIDMiddleware) FiberMiddleware

func (m *RequestIDMiddleware) FiberMiddleware() fiber.Handler

Jump to

Keyboard shortcuts

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