package
0.0.0-20211211122255-60f325a24b5a
Repository: https://github.com/localrivet/galaxycache.git
Documentation: pkg.go.dev

# Functions

NewHTTPFetchProtocol creates an HTTP fetch protocol to be passed into a Universe constructor; uses a user chosen base path specified in HTTPOptions (or the default "/_galaxycache/" base path if passed nil).
RegisterHTTPHandler sets up an HTTPHandler with a user specified path and serveMux (if non nil) to handle requests to the given Universe.

# Structs

HTTPFetchProtocol specifies HTTP specific options for HTTP-based peer communication.
HTTPHandler implements the HTTP handler necessary to serve an HTTP request; it contains a pointer to its parent Universe in order to access its galaxies.
HTTPOptions can specify the transport, base path, and stats.Recorder for serving and fetching.