Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidRootCA is returned when the root CA PEM file does not // contain both a certificate and a matching RSA private key. ErrInvalidRootCA = errors.New("proxy: invalid root CA file") // ErrCircuitOpen is returned by cbTransport.RoundTrip when the // per-host circuit breaker is open for the target host. ErrCircuitOpen = errors.New("proxy: circuit open") )
Sentinel errors. Kept at package level per repo conventions.
Functions ¶
func NewTestHandler ¶
Expose an http.Handler for tests without starting a server.
Types ¶
type CapturePolicy ¶
type CapturePolicy struct {
AllowedRequestHeaders []string
AllowedResponseHeaders []string
CaptureBodyValues bool
CaptureBodies bool
MaxBodyBytes int64
SampleRate float64
WSMaxFrames int // default 0
RedactJSONFields []string // JSON fields to mark as redacted (supports dot.paths for nested)
RedactHeaders []string // header names whose values should be treated as redacted (names still listed)
HashJSONFields []string // JSON fields to hash (SHA-256 hex truncated) instead of full value; applied after redaction
HashHeaders []string // Header names whose values should be hashed (per request/response) and stored in Event.Hashed with key header:<Name>
}
Click to show internal directories.
Click to hide internal directories.