Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMask = "***"
Variables ¶
This section is empty.
Functions ¶
func WithRequestContext ¶
func WithRequestContext(ctx context.Context, req RequestContext) context.Context
Types ¶
type CollectedContext ¶
type Pond ¶
type Pond struct {
// contains filtered or unexported fields
}
func (*Pond) SanitizeHeaders ¶
func (*Pond) SanitizeValue ¶
type RequestContext ¶
type RequestContext struct {
IP string
URL string
Method string
Headers map[string]any
QueryParams map[string]any
BodyParams map[string]any
Cookies map[string]any
Session map[string]any
Files map[string]any
}
func RequestContextFromContext ¶
func RequestContextFromContext(ctx context.Context) (RequestContext, bool)
Click to show internal directories.
Click to hide internal directories.