Documentation ¶ Index ¶ func ErrorResponse(w http.ResponseWriter, errorCode int, reason string) func Serve(cb chan<- bool, node *core.OpenBazaarNode, ctx commands.Context, ...) error type JsonAPIConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ErrorResponse ¶ added in v0.2.0 func ErrorResponse(w http.ResponseWriter, errorCode int, reason string) func Serve ¶ func Serve(cb chan<- bool, node *core.OpenBazaarNode, ctx commands.Context, authCookie http.Cookie, lis net.Listener, config repo.APIConfig, options ...corehttp.ServeOption) error Types ¶ type JsonAPIConfig ¶ added in v0.1.1 type JsonAPIConfig struct { Headers map[string][]string Enabled bool Cors bool Authenticated bool Cookie http.Cookie Username string Password string } Source Files ¶ View all Source files endpoints.go gateway.go hub.go jsonapi.go ws.go Directories ¶ Show internal Expand all Path Synopsis notifications Click to show internal directories. Click to hide internal directories.