MCPcopy Index your code
hub / github.com/dnote/dnote / Redact

Function Redact

pkg/cli/context/ctx.go:51–61  ·  view source on GitHub ↗

Redact replaces private information from the context with a set of placeholder values.

(ctx DnoteCtx)

Source from the content-addressed store, hash-verified

49// Redact replaces private information from the context with a set of
50// placeholder values.
51func Redact(ctx DnoteCtx) DnoteCtx {
52 var sessionKey string
53 if ctx.SessionKey != "" {
54 sessionKey = "1"
55 } else {
56 sessionKey = "0"
57 }
58 ctx.SessionKey = sessionKey
59
60 return ctx
61}

Callers 1

InitFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected