MCPcopy
hub / github.com/dgraph-io/dgraph / Sensitive

TypeAlias Sensitive

x/types.go:16–16  ·  view source on GitHub ↗

Sensitive implements the Stringer interface to redact its contents. Use this type for sensitive info such as keys, passwords, or secrets so it doesn't leak as output such as logs.

Source from the content-addressed store, hash-verified

14// Use this type for sensitive info such as keys, passwords, or secrets so it doesn't leak
15// as output such as logs.
16type Sensitive []byte
17
18func (Sensitive) String() string {
19 return "****"

Callers 5

TestGetHashFunction · 0.92
TestMainFunction · 0.92
parseMetaInfoFunction · 0.92
TestSensitiveFunction · 0.70
getSensitiveBytesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected