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

# Functions

AreStringSlicesEqual checks if two string slices are equal.
AreStringSlicesEquivalent checks if two string slices are equivalent.
BoolToInt converts bool to int.
BoolToUint64 converts bool to uint64.
BytesToUint64 converts a byte slice to uint64.
DeepClone returns the deep copy of the source.
EqualBaseURLs compares two URLs without scheme.
Float64Equal checks if two float64 are equal.
JSONToUint64Slice converts JSON slice to uint64 slice.
MaxUint64 returns the max value between two variables whose type are uint64.
MinDuration returns the min value between two variables whose type are time.Duration.
MinUint64 returns the min value between two variables whose type are uint64.
NewDuration creates a Duration from time.Duration.
ParseMBFromText parses MB from text.
ParseTimestamp returns a timestamp for a given byte slice.
SubRealTimeByWallClock returns the duration between two different time.Time structs.
SubTSOPhysicalByWallClock returns the duration between two different TSOs' physical times with millisecond precision.
TrimScheme trims the scheme from the URL.
Uint64ToBytes converts uint64 to a byte slice.

# Variables

ZeroTime is a zero time.

# Structs

Duration is a wrapper of time.Duration for TOML and JSON.

# Interfaces

Codec is the interface representing objects that can marshal and unmarshal themselves.

# Type aliases

ByteSize is a retype uint64 for TOML and JSON.
StringSlice is more friendly to json encode/decode.