logutil

package
v4.0.10+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(file *backup.File) zapcore.Field

File make the zap fields for a file.

func Files

func Files(fs []*backup.File) zapcore.Field

Files make the zap field for a set of file.

func Region

func Region(region *metapb.Region) zapcore.Field

Region make the zap fields for a region.

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

func ShortError(err error) zapcore.Field

ShortError make the zap field to display error without verbose representation (e.g. the stack trace).

func WrapKey

func WrapKey(key []byte) fmt.Stringer

WrapKey wrap a key as a Stringer that can print proper upper hex format.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL