Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPAnonymizationConfig ¶
type IPAnonymizationConfig struct { Enabled bool Method IPAnonymizationMethod }
Option provides a functional approach to define configuration for a handler; such as setting the logging whether to print stack traces on panic.
type IPAnonymizationMethod ¶
type IPAnonymizationMethod string
const ( Hash IPAnonymizationMethod = "hash" Redact IPAnonymizationMethod = "redact" )
type Option ¶
type Option func(handler *handler)
Option provides a functional approach to define configuration for a handler; such as setting the logging whether to print stack traces on panic.
func WithAnonymization ¶
func WithAnonymization(ipConfig *IPAnonymizationConfig) Option
func WithDefaultOptions ¶
func WithDefaultOptions() Option
func WithFields ¶
func WithFieldsHandler ¶
func WithFieldsHandler(fn ContextFunc) Option
func WithNoTimeField ¶
func WithNoTimeField() Option
Click to show internal directories.
Click to hide internal directories.