package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
DeRedact is similar to DeRedactFile, but act on reader/writer, it works line by line.
DeRedactFile will deredact the input file, either removing marked contents, or remove the marker.
InitRedact inits the enableRedactLog.
Key receives a key return omitted information if redact log enabled.
NeedRedact returns whether to redact log.
String will redact the input string according to 'mode'.
Stringer will redact the input stringer according to 'mode', similar to String().
Value receives string argument and return omitted information if redact log enabled.
WriteRedact is to write string with redact into `strings.Builder`.
# Structs
TaskInfoRedacted is a wrapper of backup.StreamBackupTaskInfo to redact sensitive information.