package
0.0.0-20241224003634-a782910659cb
Repository: https://github.com/thepuffproject/puff.git
Documentation: pkg.go.dev

# Functions

CORS returns a CORS middleware with the default configuration.
CORSWithConfig returns a CORS middleware with the specified configuration.
CSRF middleware automatically injects a cookie with a unique token and requires the request to provide the csrf token in the response header.
CSRFWithConfig returns a CSRF middleware with your configuration.
DefaultSkipper can be set on a middleware config to never skip the middleware.
Logging returns a Logging middleware with the default configuration.
LoggingWithConfig returns a Logging middleware with the specified configuration.
Panic middleware returns a middleware with the default configuration.
PanicWithConfig returns a middleware with your configuration.
Tracing middleware provides the ability to automatically trace every route with a request id.
TracingWithConfig returns a tracing middleware with the config given.

# Variables

DefaultCORSConfig provides the default configuration for CORS middleware.
DefaultCSRFMiddleware is a CSRFMiddlewareConfig with specified default values.
No description provided by the author
DefaultCSRFMiddleware is a PanicConfig with specified default values.
DefaultTracingConfig is a TracingConfig with specified default values.

# Structs

CORSConfig defines the configuration for the CORS middleware.
CSRFMiddlewareConfig is a struct to configure the CSRF middleware.
LoggingConfig defines the configuration for the Logging middleware.
PanicConfig provides a struct to configure the Panic middleware.
TracingConfig is a struct to configure the tracing middleware.