Documentation ¶ Index ¶ func RunHTTPD(ctx context.Context, idxChan chan *index.Index, addr string, ...) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RunHTTPD ¶ func RunHTTPD(ctx context.Context, idxChan chan *index.Index, addr string, allowedOrigins []string) error RunHTTPD starts the API server on the given addr serving the index. If you need to support XHRs, make sure to pass respective allowedOrigin hosts like http://domain.com:5000. Types ¶ This section is empty. Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.