package
0.0.0-20160920194302-ad86efcaa21b
Repository: https://github.com/a10y/cockroach.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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package hlc is a generated protocol buffer package.
No description provided by the author
Package interval implements an interval tree based on an augmented Left-Leaning Red Black tree.
Package leaktest provides tools to detect leaked goroutines in tests.
Package log is a generated protocol buffer package.
Package metric provides server metrics (a.k.a.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package sdnotify implements both sides of the systemd readiness protocol.
No description provided by the author
No description provided by the author
No description provided by the author
Package tracing is a generated protocol buffer package.
No description provided by the author
# Functions
CleanupDir removes the passed-in directory and all contents.
CreateRestrictedFile creates a file on disk which contains the supplied byte string as its content.
CreateTempDir creates a temporary directory and returns its path.
EqualPtrFields uses reflection to check two "mirror" structures for matching pointer fields that point to the same object.
GetJSON uses the supplied client to GET the URL specified by the parameters and unmarshals the result into response.
GetSmallTrace produces a ":"-separated single line containing the topmost 5 callers from a given skip level.
GetTopCallers populates an array with the names of the topmost 5 caller functions in the stack after skipping a given number of frames.
MakeUnresolvedAddr populates an UnresolvedAddr from a network and raw address string.
MoveTopKToFront moves the top K elements to the front.
NewUnresolvedAddr creates a new UnresolvedAddr from a network and raw address string.
NoZeroField returns nil if none of the fields of the struct underlying the interface are equal to the zero value, and an error otherwise.
Pluralize returns a single character 's' unless n == 1.
PostJSON uses the supplied client to POST request to the URL specified by the parameters and unmarshals the result into response.
RetryForDuration will retry the given function until it either returns without error, or the given duration has elapsed.
RoundUpPowerOfTwo returns the first power of 2 greater or equal to the number.
StreamJSON uses the supplied client to POST the given proto request as JSON to the supplied streaming grpc-gw endpoint; the response type serves only to create the values passed to the callback (which is invoked for every message in the stream with a value of the supplied response type masqueraded as an interface).
SucceedsSoon fails the test (with t.Fatal) unless the supplied function runs without error within a preset maximum duration.
SucceedsSoonDepth is like SucceedsSoon() but with an additional stack depth offset.
TruncateDuration returns a new duration obtained from the first argument by discarding the portions at finer resolution than that given by the second argument.
UnimplementedWithIssueErrorf constructs an UnimplementedWithIssueError with the provided issue and formatted message.
# Constants
AcceptEncodingHeader is the canonical header name for accept encoding.
AcceptHeader is the canonical header name for accept.
AltJSONContentType is the alternate JSON content type.
AltProtoContentType is the alternate protobuf content type.
ContentEncodingHeader is the canonical header name for content type.
ContentTypeHeader is the canonical header name for content type.
GzipEncoding is the gzip encoding.
JSONContentType is the JSON content type.
PlaintextContentType is the plaintext content type.
ProtoContentType is the protobuf content type.
# Variables
No description provided by the author
No description provided by the author
PanicTester is a Tester which panics.
TestAddr is an address to use for test servers.
# Structs
ProtoPb is a gwruntime.Marshaler that uses github.com/gogo/protobuf/proto.
UnimplementedWithIssueError is an error that links unimplemented functionality back to its issue on GitHub.
/ UnresolvedAddr is an unresolved version of net.Addr.
# Interfaces
Tester is a proxy for e.g.
# Type aliases
JSONPb is a gwruntime.Marshaler that uses github.com/gogo/protobuf/jsonpb.