MCPcopy
hub / github.com/op/go-logging / Redactor

Interface Redactor

logger.go:23–25  ·  view source on GitHub ↗

Redactor is an interface for types that may contain sensitive information (like passwords), which shouldn't be printed to the log. The idea was found in relog as part of the vitness project.

Source from the content-addressed store, hash-verified

21// (like passwords), which shouldn't be printed to the log. The idea was found
22// in relog as part of the vitness project.
23type Redactor interface {
24 Redacted() interface{}
25}
26
27// Redact returns a string of * having the same length as s.
28func Redact(s string) string {

Callers 1

MessageMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected