Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func ErrorResponse(w http.ResponseWriter, errorCode int, reason string)
func SanitizeJSON ¶
func SanitizedResponse ¶
func SanitizedResponse(w http.ResponseWriter, response string)
func SanitizedResponseM ¶
func SanitizedResponseM(w http.ResponseWriter, response string, m proto.Message)
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway represents an HTTP API gateway
func NewGateway ¶
func NewGateway(n *core.OpenBazaarNode, authCookie http.Cookie, l net.Listener, config repo.APIConfig, options ...corehttp.ServeOption) (*Gateway, error)
NewGateway instantiates a new `Gateway`
Source Files ¶
Click to show internal directories.
Click to hide internal directories.