MCPcopy Index your code
hub / github.com/cockroachdb/redact

github.com/cockroachdb/redact @v1.1.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.8 ↗ · + Follow
402 symbols 1,433 edges 37 files 227 documented · 56% 54 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

redact

Utilities to redact Go strings for confidentiality

Build Status Go Reference

Some explanations about how this is used in e.g. CockroachDB:

https://wiki.crdb.io/wiki/spaces/CRDB/pages/1824817806/Log+and+error+redactability

Extension points exported contracts — how you extend this code

Formatter (Interface)
Formatter is implemented by any value that has a Format method. The implementation controls how State and rune are inter [8 …
internal/rfmt/print.go
SafeValue (Interface)
SafeValue is a marker interface to be implemented by types that alias base Go types and whose natural representation via [5 …
interfaces/interfaces.go
Stringer (Interface)
Stringer is implemented by any value that has a String method, which defines the `native` format for that value. The Str [5 …
internal/rfmt/print.go
SafeFormatter (Interface)
SafeFormatter is implemented by object types that want to separate safe and non-safe information when printed out by a P [4 …
interfaces/interfaces.go
State (Interface)
State represents the printer state passed to custom formatters. It provides access to the io.Writer interface plus infor [1 …
internal/rfmt/print.go
SafeWriter (Interface)
SafeWriter provides helper functions for use in implementations of SafeFormatter, to format mixes of safe and unsafe str [2 …
interfaces/interfaces.go
GoStringer (Interface)
GoStringer is implemented by any value that has a GoString method, which defines the Go syntax for that value. The GoStr
internal/rfmt/print.go
SafePrinter (Interface)
SafePrinter is a stateful helper that abstracts an output stream in the context of printf-like formatting, but with the
interfaces/interfaces.go

Core symbols most depended-on inside this repo

Printf
called by 80
interfaces/interfaces.go
restore
called by 58
internal/rfmt/helpers.go
writeString
called by 49
internal/rfmt/print.go
SetMode
called by 48
internal/buffer/buffer.go
Sprintf
called by 47
markers_print.go
WriteByte
called by 47
internal/buffer/buffer.go
writeByte
called by 38
internal/rfmt/print.go
WriteString
called by 37
internal/buffer/buffer.go

Shape

Method 196
Function 136
Struct 38
TypeAlias 22
Interface 9
FuncType 1

Languages

Go100%

Modules by API surface

markers_test.go60 symbols
internal/rfmt/print.go58 symbols
interfaces/interfaces.go49 symbols
internal/buffer/buffer.go26 symbols
internal/rfmt/format.go21 symbols
hash_redact_test.go21 symbols
builder/builder.go19 symbols
internal/markers/markers.go17 symbols
internal/rfmt/helpers.go14 symbols
internal/rfmt/printer_adapter.go13 symbols
api.go12 symbols
internal/buffer/buffer_test.go11 symbols

For agents

$ claude mcp add redact \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact