# Packages
Package middleware provides symbols for HTTP "middleware" which wraps handlers to perform common behaviors, such as authentication, headers, and compression.
# Functions
CompileRoutes - takes a map of methods to paths and handlers, and returns a map of methods to CompiledRoutes.
CreateRouteMap returns a map of methods to a slice of paths and handlers; wrapping the handlers in the appropriate middleware.
CreateThrottledHandler takes a handler, and a max and uses a channel to insure the handler is used concurrently by only max number of routines.
No description provided by the author
GetBackendConfig returns the current BackendConfig.
GetRouteIDMap takes a []int Route IDs and converts it into a map for fast lookup.
HandleBackendRoute does all the pre processing for the backend routes.
Handler - generic handler func used by the Handlers hooking into the routes.
IsRequestAPIAndUnknownVersion returns true if the request starts with `/api` and is a version not in the list of versions.
No description provided by the author
RegisterRoutes - parses the routes and registers the handlers with the Go Router.
Routes returns the API routes, raw non-API root level routes, and a catchall route for when no route matches.
SetBackendConfig sets the BackendConfig to the value supplied.
# Constants
Authenticated indicates that a route requires authentication for use.
NoAuth indicates that a route does not require authentication for use.
TODO config?.
# Structs
CompiledRoute ...
PathHandler ...
A Route defines an association with a client request and a handler for that request.
ServerData ...
ThrottledHandler ...