Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
MaskReplacement string `json:"maskReplacement,omitempty"`
BypassHeaders []string `json:"bypassHeaders,omitempty"`
MaxBodyBytes int64 `json:"maxBodyBytes,omitempty"`
HashIDs bool `json:"hashIDs,omitempty"`
}
Config holds middleware configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig returns the default plugin configuration.
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware implements http.Handler and performs redaction.
func (*Middleware) ServeHTTP ¶
func (m *Middleware) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.