middleware

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(allowedOrigins []string, useSentry bool) middleware

func Default

func Default(
	isTestEnv bool,
	allowedOrigins []string,
	sentryClientOptions *sentry.ClientOptions,
	showErrors bool,
) []alice.Constructor

func ErrorObfuscater

func ErrorObfuscater(showErrors bool) middleware

func Logger

func Logger(next http.Handler) http.Handler

func Minimal

func Minimal(showErrors bool) []alice.Constructor

func RateLimit

func RateLimit(
	rps rate.Limit,
	bucketSize int,
	cleanupTimer time.Duration,
	removeAfter time.Duration,
) middleware

func Recover

func Recover(next http.Handler) http.Handler

func Sentry

func Sentry(isTestEnv bool, clientOptions sentry.ClientOptions) middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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