Documentation ¶
Index ¶
- func File(file *backup.File) zapcore.Field
- func Files(fs []*backup.File) zapcore.Field
- func Region(region *metapb.Region) zapcore.Field
- func RewriteRule(rewriteRule *import_sstpb.RewriteRule) zapcore.Field
- func SSTMeta(sstMeta *import_sstpb.SSTMeta) zapcore.Field
- func ShortError(err error) zapcore.Field
- func WrapKey(key []byte) fmt.Stringer
- func WrapKeys(keys [][]byte) zapcore.ArrayMarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RewriteRule ¶
func RewriteRule(rewriteRule *import_sstpb.RewriteRule) zapcore.Field
RewriteRule make the zap fields for a rewrite rule.
func SSTMeta ¶
func SSTMeta(sstMeta *import_sstpb.SSTMeta) zapcore.Field
SSTMeta make the zap fields for a SST meta.
func ShortError ¶
ShortError make the zap field to display error without verbose representation (e.g. the stack trace).
func WrapKeys ¶
func WrapKeys(keys [][]byte) zapcore.ArrayMarshaler
WrapKeys wrap keys as an ArrayMarshaler that can print proper upper hex format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.