http

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL