package
1.1.0
Repository: https://github.com/allaboutapps/integresql.git
Documentation: pkg.go.dev

# Functions

DefaultBodyLogReplacer returns the body received without any modifications.
DefaultHeaderLogReplacer replaces all Authorization, X-CSRF-Token and Proxy-Authorization header entries with a redacted string, indicating their presence without revealing actual, potentially sensitive values in the logs.
DefaultQueryLogReplacer returns the query received without any modifications.
DefaultRequestBodyLogSkipper returns true for all requests with Content-Type application/x-www-form-urlencoded or multipart/form-data as those might contain binary or URL-encoded file uploads unfit for logging purposes.
DefaultResponseBodyLogSkipper returns false for all responses with Content-Type application/json, preventing logging for all other types of payloads as those might contain binary or URL-encoded data unfit for logging purposes.
Logger with default logger output and configuration.
LoggerWithConfig returns a new MiddlewareFunc which creates a logger with the desired configuration.

# Variables

No description provided by the author

# Structs

No description provided by the author

# Type aliases

BodyLogReplacer defines a function to replace certain parts of a body before logging it, mainly used to strip sensitive information from a request or response payload.
HeaderLogReplacer defines a function to replace certain parts of a header before logging it, mainly used to strip sensitive information from a request or response header.
QueryLogReplacer defines a function to replace certain parts of a URL query before logging it, mainly used to strip sensitive information from a request query.
RequestBodyLogSkipper defines a function to skip logging certain request bodies.
ResponseBodyLogSkipper defines a function to skip logging certain response bodies.