Documentation ¶
Index ¶
- func ErrorResponse(w http.ResponseWriter, errorCode int, reason string)
- func JSONErrorResponse(w http.ResponseWriter, errorCode int, err error)
- func RenderJSONOrStringError(w http.ResponseWriter, errorCode int, err error)
- 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 ¶
func ErrorResponse(w http.ResponseWriter, errorCode int, reason string)
func JSONErrorResponse ¶
func JSONErrorResponse(w http.ResponseWriter, errorCode int, err error)
func RenderJSONOrStringError ¶
func RenderJSONOrStringError(w http.ResponseWriter, errorCode int, err error)
func SanitizeJSON ¶
func SanitizeProtobuf ¶
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
type JSONAPIConfig ¶
Click to show internal directories.
Click to hide internal directories.