package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/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 ctxgroup wraps golang.org/x/sync/errgroup with a context func.
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 flagutil facilitates creation of rich flag types.
Package fsm provides an interface for defining and working with finite-state
machines.
No description provided by the author
Package hlc implements the Hybrid Logical Clock outlined in "Logical Physical Clocks and Consistent Snapshots in Globally Distributed Databases", available online at http://www.cse.buffalo.edu/tech-reports/2014-04.pdf.
No description provided by the author
No description provided by the author
Package interval provides two implementations for an interval tree.
No description provided by the author
No description provided by the author
Package leaktest provides tools to detect leaked goroutines in tests.
No description provided by the author
Package log implements logging.
Package metric provides server metrics (a.k.a.
No description provided by the author
No description provided by the author
Package pretty prints documents based on a target line width.
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
No description provided by the author
No description provided by the author
No description provided by the author
Package sysutil is a cross-platform compatibility layer on top of package syscall.
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
# Functions
CRC32 computes the Castagnoli CRC32 of the given data.
EnableRacePreemptionPoints enables goroutine preemption points declared with RacePreempt for builds using the race build tag.
EqualPtrFields uses reflection to check two "mirror" structures for matching pointer fields that point to the same object.
Every is a convenience constructor for an EveryN object that allows a log message every n duration.
GetSingleRune decodes the string s as a single rune if possible.
GetSmallTrace returns a comma-separated string containing the top 5 callers from a given skip level.
MakeFastIntSet returns a set initialized with the given values.
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.
Pluralize returns a single character 's' unless n == 1.
RacePreempt adds a goroutine preemption point if CockroachDB was built with the race build tag and preemption points have been enabled.
# Constants
RaceEnabled is true if CockroachDB was built with the race build tag.
# Variables
No description provided by the author
No description provided by the author
IsolatedTestAddr is an address to use for tests that need extra isolation by using more addresses than 127.0.0.1 (support for this is platform-specific and only enabled on Linux).
TestAddr is an address to use for test servers.
# Structs
EveryN provides a way to rate limit spammy events.
FastIntMap is a replacement for map[int]int which is more efficient when both keys and values are small.
FastIntSet keeps track of a set of integers.
NoCopy may be embedded into structs which must not be copied after the first use.
UnionFind implements the union find structure, with union by rank and path compression heuristics.
/ UnresolvedAddr is an unresolved version of net.Addr.