README

pkg/ is a collection of utility packages used by etcd without being specific to etcd itself. A package belongs here only if it could possibly be moved out into its own repository in the future.

Expand ▾ Collapse ▴

Directories

Path Synopsis
adt Package adt implements useful abstract data types.
contention Package contention provides facilities for detecting system contention.
cpuutil Package cpuutil provides facilities for detecting cpu-specific features.
crc Package crc provides utility function for cyclic redundancy check algorithms.
debugutil Package debugutil includes utility functions for debugging.
expect Package expect implements a small expect-style interface TODO(ptab): Consider migration to https://github.com/google/goexpect.
fileutil Package fileutil implements utility functions related to files and paths.
flags Package flags implements command-line flag parsing.
httputil Package httputil provides HTTP utility functions.
idutil Package idutil implements utility functions for generating unique, randomized ids.
ioutil Package ioutil implements I/O utility functions.
logutil Package logutil includes utilities to facilitate logging.
netutil Package netutil implements network-related utility functions.
osutil Package osutil implements operating system-related utility functions.
pathutil Package pathutil implements utility functions for handling slash-separated paths.
pbutil Package pbutil defines interfaces for handling Protocol Buffer objects.
proxy Package proxy implements proxy servers for network fault testing.
report Package report generates human-readable benchmark reports.
runtime Package runtime implements utility functions for runtime systems.
schedule Package schedule provides mechanisms and policies for scheduling units of work.
srv Package srv looks up DNS SRV records.
stringutil Package stringutil exports string utility functions.
systemd Package systemd provides utility functions for systemd.
testutil Package testutil provides test utility functions.
tlsutil Package tlsutil provides utility functions for handling TLS.
traceutil Package traceutil implements tracing utilities using "context".
transport Package transport implements various HTTP transport utilities based on Go net package.
types Package types declares various data types and implements type-checking functions.
wait Package wait provides utility functions for polling, listening using Go channel.