Documentation ¶
Index ¶
- func ErrorResponse(w http.ResponseWriter, errorCode int, reason string)
- func SanitizeJSON(s []byte) ([]byte, error)
- func SanitizeProtobuf(jsonEncodedProtobuf string, m proto.Message) ([]byte, error)
- func SanitizedResponse(w http.ResponseWriter, response string)
- func SanitizedResponseM(w http.ResponseWriter, response string, m proto.Message)
- type Gateway
- type JsonAPIConfig
- type TransactionQuery
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 SanitizeJSON ¶ added in v0.5.1
func SanitizeProtobuf ¶ added in v0.5.6
func SanitizedResponse ¶ added in v0.5.1
func SanitizedResponse(w http.ResponseWriter, response string)
func SanitizedResponseM ¶ added in v0.5.1
func SanitizedResponseM(w http.ResponseWriter, response string, m proto.Message)
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`
type JsonAPIConfig ¶ added in v0.1.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.