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

Method IsValid

modules/logging/filters.go:298–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296)
297
298func (a filterAction) IsValid() error {
299 switch a {
300 case replaceAction, deleteAction, hashAction:
301 return nil
302 }
303
304 return errors.New("invalid action type")
305}
306
307type queryFilterAction struct {
308 // `replace` to replace the value(s) associated with the parameter(s), `hash` to replace them with the 4 initial bytes of the SHA-256 of their content or `delete` to remove them entirely.

Callers 5

UnmarshalBinaryMethod · 0.80
serveHTTPMethod · 0.80
ValidateMethod · 0.80
ValidateMethod · 0.80
buildTLSAppMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected