Documentation
¶
Index ¶
- func Cors(allowedOrigins []string, useSentry bool) middleware
- func Default(isTestEnv bool, allowedOrigins []string, ...) []alice.Constructor
- func ErrorObfuscater(showErrors bool) middleware
- func Logger(next http.Handler) http.Handler
- func Minimal(showErrors bool) []alice.Constructor
- func RateLimit(rps rate.Limit, bucketSize int, cleanupTimer time.Duration, ...) middleware
- func Recover(next http.Handler) http.Handler
- func Sentry(isTestEnv bool, clientOptions sentry.ClientOptions) middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Default ¶
func Default( isTestEnv bool, allowedOrigins []string, sentryClientOptions *sentry.ClientOptions, showErrors bool, ) []alice.Constructor
func ErrorObfuscater ¶
func ErrorObfuscater(showErrors bool) middleware
func Minimal ¶
func Minimal(showErrors bool) []alice.Constructor
func Sentry ¶
func Sentry(isTestEnv bool, clientOptions sentry.ClientOptions) middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.