Documentation
¶
Index ¶
- type Config
- type Plugin
- func (p *Plugin) Config() any
- func (p *Plugin) Handler(next http.Handler) http.Handler
- func (p *Plugin) Init() error
- func (p *Plugin) PostInit() error
- func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult
- func (p *Plugin) SanitizeLogSnapshot(snapshot *base.LogSnapshot) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
base.BasePlugin
// contains filtered or unexported fields
}
func (*Plugin) RunRequestPhase ¶
func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult
func (*Plugin) SanitizeLogSnapshot ¶
func (p *Plugin) SanitizeLogSnapshot(snapshot *base.LogSnapshot) error
SanitizeLogSnapshot removes key-auth credentials from the detached logging representation. It deliberately does not alter the live request, so the logging guarantee also applies when a higher-priority plugin stops the request before key-auth's request phase runs.