package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

AbbreviatedArray constructs a field that abbreviates an array of elements.
AShortError make the zap field with key to display error without verbose representation (e.g.
CL is the shorthand for LoggerFromContext.
ContextWithField wrap a context with a logger with some fields.
File make the zap fields for a file.
Files make the zap field for a set of file.
Key constructs a field that carries upper hex format key.
Keys constructs a field that carries upper hex format keys.
Leader make the zap fields for a peer as leader.
LoggerFromContext returns the contextual logger via the context.
MarshalLogObjectForFiles is an internal util function to zap something having `Files` field.
Peer make the zap fields for a peer.
Redact replaces the zap field by a '?' if redaction is turned on.
RedactAny constructs a redacted field that carries an interface{}.
Region make the zap fields for a region.
RegionBy make the zap fields for a region with name.
ResetGlobalLogger resets the global logger.
RewriteRule make the zap fields for a rewrite rule.
RewriteRuleObject make zap object marshaler for a rewrite rule.
ShortError make the zap field to display error without verbose representation (e.g.
SSTMeta make the zap fields for a SST meta.
SSTMetas make the zap fields for SST metas.
StreamBackupTaskInfo makes the zap fields for a stream backup task info.
StringifyMany returns an array marshaler for a slice of stringers.
TraceRateOver make a trivial rater based on a counter.
WarnTerm put a log both to terminal and to the log file.

# Variables

MetricTableCreatedCounter counts how many tables created.

# Structs

RateTracer is a trivial rate tracer based on a prometheus counter.

# Type aliases

AbbreviatedArrayMarshaler abbreviates an array of elements.
HexBytes is a wrapper which make a byte sequence printed by the hex format.
StringifyKeys wraps the key range into a stringer.
StringifyRange is the wrapper for displaying a key range.