Documentation ¶
Index ¶
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)
Types ¶
type Gateway ¶ added in v0.3.0
type Gateway struct {
// contains filtered or unexported fields
}
Gateway represents an HTTP API gateway
func NewGateway ¶ added in v0.3.0
func NewGateway(n *core.OpenBazaarNode, authCookie http.Cookie, l net.Listener, config repo.APIConfig, options ...corehttp.ServeOption) (*Gateway, error)
NewGateway instantiates a new `Gateway`
Click to show internal directories.
Click to hide internal directories.