MCPcopy
hub / github.com/caddyserver/caddy / HashFilter

Struct HashFilter

modules/logging/filters.go:86–86  ·  view source on GitHub ↗

HashFilter is a Caddy log field filter that replaces the field with the initial 4 bytes of the SHA-256 hash of the content. Operates on string fields, or on arrays of strings where each string is hashed.

Source from the content-addressed store, hash-verified

84// on string fields, or on arrays of strings
85// where each string is hashed.
86type HashFilter struct{}
87
88// CaddyModule returns the Caddy module information.
89func (HashFilter) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected