# Functions
DatasetRefFromCtx extracts a Dataset reference from a given context if one is set, returning nil otherwise.
DatasetRefFromReq examines the path element of a request URL to.
GetBodyCSVHandler is a handler for returning the body as a csv file Examples: curl http://localhost:2503/ds/get/b5/world_bank_population/body.csv.
GetHandler is a dataset single endpoint.
HealthCheckHandler is a basic ok response for load balancers & co returns the version of qri this node is running, pulled from the lib package.
HTTPSRedirect listens over TCP on addr, redirecting HTTP requests to https.
New creates a new qri server from a p2p node & configuration.
NewServerRoutes returns a Muxer that has all API routes.
StartServer interprets info from config to start an API server.
UnmarshalParams deserializes a lib req params stuct pointer from an HTTP request.
UnpackHandler unpacks a zip file and sends it back as json.
WebuiHandler returns the webui html.
# Constants
AEGetCSVFullRef is the route used to get a body as a csv, that can also handle a specific hash.
AEGetCSVShortRef is the route used to get a body as a csv.
AEHealth is the service health check endpoint.
AEHome is the / endpoint.
AEIPFS is the IPFS endpoint.
AEUnpack unpacks a zip file and sends it back.
AEWebUI serves the remote WebUI.
DatasetRefCtxKey is the key for adding a dataset reference to a context.Context.
DefaultTemplateHash is the hash of the default render template.
DefaultWebappPort is the default port the web app will listen on.
TemplateUpdateAddress is the URI for the template update.
# Variables
APIVersion is the version string that is written in API responses.
# Structs
Server wraps a qri p2p node, providing traditional access via http Create one with New, start it up with Serve.
# Interfaces
RequestUnmarshaller is an interface for deserializing from an HTTP request.
# Type aliases
QriCtxKey defines a distinct type for keys for context values should always use custom types to avoid collisions.