uptaskmw

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyMiddleware

func VerifyMiddleware(signingKey string, issuer string) func(http.Handler) http.Handler

VerifyMiddleware creates a standard http middleware function that verifies Upstash signatures on incoming requests with default configuration

func VerifyMiddlewareWithConfig

func VerifyMiddlewareWithConfig(config Config) func(http.Handler) http.Handler

VerifyMiddlewareWithConfig creates a middleware with a custom configuration

Types

type Config

type Config struct {
	SigningKey string
	Issuer     string
	Logger     *slog.Logger
}

Config holds the configuration for the middleware

Jump to

Keyboard shortcuts

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