package
0.43.1
Repository: https://github.com/puneetsingh166/onomy-sdk.git
Documentation: pkg.go.dev

# Functions

CheckBadRequestError attaches an error message to an HTTP 400 BAD REQUEST response.
CheckError takes care of writing an error response if err is not nil.
CheckInternalServerError attaches an error message to an HTTP 500 INTERNAL SERVER ERROR response.
CheckNotFoundError attaches an error message to an HTTP 404 NOT FOUND response.
GetRequest defines a wrapper around an HTTP GET request with a provided URL.
NewBaseReq creates a new basic request instance and sanitizes its values.
NewErrorResponse creates a new ErrorResponse instance.
NewResponseWithHeight creates a new ResponseWithHeight instance.
ParseFloat64OrReturnBadRequest converts s to a float64 value.
ParseHTTPArgs parses the request's URL and returns a slice containing all arguments pairs.
ParseHTTPArgsWithLimit parses the request's URL and returns a slice containing all arguments pairs.
ParseQueryHeightOrReturnBadRequest sets the height to execute a query if set by the http request.
ParseQueryParamBool parses the given param to a boolean.
ParseResponseWithHeight returns the raw result from a JSON-encoded ResponseWithHeight object.
ParseUint64OrReturnBadRequest converts s to a uint64 value.
PostProcessResponse performs post processing for a REST response.
PostProcessResponseBare post processes a body similar to PostProcessResponse except it does not wrap the body and inject the height.
PostRequest defines a wrapper around an HTTP POST request with a provided URL and data.
ReadRESTReq reads and unmarshals a Request's body to the the BaseReq struct.
WriteErrorResponse prepares and writes a HTTP error given a status code and an error message.
WriteSimulationResponse prepares and writes an HTTP response for transactions simulations.

# Constants

should be consistent with tendermint/tendermint/rpc/core/pipe.go:19.
No description provided by the author
Inclusive maximum height filter.
Inclusive minimum height filter.

# Structs

BaseReq defines a structure that can be embedded in other request structures that all share common "base" fields.
ErrorResponse defines the attributes of a JSON error response.
GasEstimateResponse defines a response definition for tx gas estimation.
ResponseWithHeight defines a response object type that wraps an original response with a height.