Documentation ¶
Overview ¶
Package redact contains a simple context signal for redacting requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
Error redacts potentially sensitive query parameter values in the URL from the error's message.
If the error is a *url.Error, this returns a *url.Error with the URL redacted. Any other error type, or nil, is returned unchanged.
func FromContext ¶
FromContext returns the redaction reason, if any.
func NewContext ¶
NewContext creates a new ctx with the reason for redaction.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.