# Functions
HandleErr takes an error, and the request type it came from, and logs.
MakeDispatchMap returns the map of paths to http.HandlerFuncs for dispatching.
NewCacheStatFilter takes the HTTP query parameters and creates a CacheStatFilter which fulfills the `cache.Filter` interface, filtering according to the query parameters passed.
NewDSStatFilter takes the HTTP query parameters and creates a cache.Filter, filtering according to the query parameters passed.
NewPeerStateFilter takes the HTTP query parameters and creates a cache.Filter, filtering according to the query parameters passed.
No description provided by the author
WrapBytes takes a function which cannot error and returns only bytes, and wraps it as a http.HandlerFunc.
WrapErr takes a function which returns bytes and an error, and wraps it as a http.HandlerFunc.
WrapErrCode calls the WrapErrStatusCode function with a hardcoded 500.
WrapErrStatusCode takes the body, err, status code, and log context (errorCount, reqPath).
WrapParams takes a SrvFunc and wraps it as an http.HandlerFunc.
# Constants
NotFoundStatus is the status value of an interface that has not been found in the polled interface data.
OnlineStatus is the status value of all interfaces that are associated with an ONLINE server.
# Structs
APIPeerStates contains the data to be returned for an API call to get the peer states of a Traffic Monitor.
CacheInterfaceStatus represents the status of a single network interface of a cache server.
CacheState represents the available state of a cache.
CacheStatFilter fulfills the cache.Filter interface, for filtering stats.
CacheStatSummary is a summary of a cache server's measured statistics and the measured statistics of its network interfaces.
CacheStatus contains summary stat data about the given cache.
DSStatFilter fulfills the cache.Filter interface, for filtering stats.
JSONEvents represents the structure we wish to serialize to JSON, for Events.
No description provided by the author
PeerStateFilter fulfills the cache.Filter interface, for filtering stats.
Stats contains statistics data about this running app.
No description provided by the author
StatSummaryStat represents a summary of a stat's values and changes over a period of time.