Documentation
¶
Index ¶
- Constants
- func DebugMiddleware(baseConfig *config.APIDebugConfig) func(http.Handler) http.Handler
- func GetOptionsFromContext(ctx context.Context) (generation.PDFGenerationOptions, bool)
- func GetRequestIDFromContext(ctx context.Context) (string, bool)
- func RequestLoggingMiddleware() func(http.Handler) http.Handler
Constants ¶
View Source
const ( OptionsContextKey contextKey = "autopdf_options" RequestIDContextKey contextKey = "request_id" )
Variables ¶
This section is empty.
Functions ¶
func DebugMiddleware ¶
DebugMiddleware extracts debug options from request headers
func GetOptionsFromContext ¶
func GetOptionsFromContext(ctx context.Context) (generation.PDFGenerationOptions, bool)
GetOptionsFromContext extracts PDF generation options from context
func GetRequestIDFromContext ¶
GetRequestIDFromContext extracts request ID from context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.