package
1.5.0
Repository: https://github.com/pingcap/diag.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddHeaders parse headers like "a: b" and add them to exist header.
CollectLog collects logs.
DirSize returns the total file size of a dir.
No description provided by the author
FlatMap iterate all map element with the given tagPath, return a slice contain all visited elements.
No description provided by the author
MustCmpDuration return 0, -1, 1; 0 left == right, 1 left > right, -1 left < right Only use this method in gengine.
MustCmpReadableSize return 0, -1, 1; 0 left == right, 1 left > right, -1 left < right Only use this method in gengine.
NewTokenLimiter creates a TokenLimiter with count tokens.
ParseReadableDuration is copied from prometheus ParseDuration function.
No description provided by the author
ParseTime converts a string to time.Time, ported from Prometheus: web/api/v1/api.go.
No description provided by the author
No description provided by the author
No description provided by the author
TrimLeftSpace trim all left space.
No description provided by the author
No description provided by the author
No description provided by the author
ValueToString return the parsed string value for other type.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

Token is used as a permission to keep on running.
TokenLimiter is used to limit the number of concurrent tasks.

# Type aliases

No description provided by the author