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
Package cors handles cross-origin HTTP requests (CORS).
Package cors handles cross-origin HTTP requests (CORS).
Package crc provides utility function for cyclic redundancy check algorithms.
Package crc provides utility function for cyclic redundancy check algorithms.
Package fileutil implements utility functions related to files and paths.
Package fileutil implements utility functions related to files and paths.
Package flags implements command-line flag parsing.
Package flags implements command-line flag parsing.
Package httputil provides HTTP utility functions.
Package httputil provides HTTP utility functions.
Package idutil implements utility functions for generating unique, randomized ids.
Package idutil implements utility functions for generating unique, randomized ids.
Package ioutil implements I/O utility functions.
Package ioutil implements I/O utility functions.
Package logutil includes utilities to facilitate logging.
Package logutil includes utilities to facilitate logging.
mock
Package netutil implements network-related utility functions.
Package netutil implements network-related utility functions.
Package osutil implements operating system-related utility functions.
Package osutil implements operating system-related utility functions.
Package pathutil implements utility functions for handling slash-separated paths.
Package pathutil implements utility functions for handling slash-separated paths.
Package pbutil defines interfaces for handling Protocol Buffer objects.
Package pbutil defines interfaces for handling Protocol Buffer objects.
Package runtime implements utility functions for runtime systems.
Package runtime implements utility functions for runtime systems.
Package testutil provides test utility functions.
Package testutil provides test utility functions.
Package transport implements various HTTP transport utilities based on Go net package.
Package transport implements various HTTP transport utilities based on Go net package.
Package types declares various data types and implements type-checking functions.
Package types declares various data types and implements type-checking functions.
Package wait provides utility functions for polling, listening using Go channel.
Package wait provides utility functions for polling, listening using Go channel.