Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingStore = errors.New("store not specified in request")
Functions ¶
This section is empty.
Types ¶
type AsyncIndex ¶
type HTTPAPI ¶
type HTTPAPI struct { Address string Protocol string Site string Stores map[string]*schemaless.DataStore // contains filtered or unexported fields }
HTTPAPI encapsulates everything we need to run a webserver.
func New ¶
New requires a zap logger (see pkg/log, and/or go.uber.org/zap) and a suitable config object. It returns an HTTPAPI or nil and an error. Properly configured, the HTTPAPI should be ready to have Start() called.
Click to show internal directories.
Click to hide internal directories.