Documentation ¶
Index ¶
- func QueryBadRequest(legacyQuerierCdc *codec.LegacyAmino, result interface{}) ([]byte, error)
- func QueryNotFound(legacyQuerierCdc *codec.LegacyAmino, result interface{}) ([]byte, error)
- func QueryOK(legacyQuerierCdc *codec.LegacyAmino, result interface{}) ([]byte, error)
- type QueryPaginationParams
- type QueryResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryBadRequest ¶
func QueryBadRequest(legacyQuerierCdc *codec.LegacyAmino, result interface{}) ([]byte, error)
QueryBadRequest creates and marshals a QueryResult instance with HTTP status BadRequest.
func QueryNotFound ¶
func QueryNotFound(legacyQuerierCdc *codec.LegacyAmino, result interface{}) ([]byte, error)
QueryNotFound creates and marshals a QueryResult instance with HTTP status NotFound.
Types ¶
type QueryPaginationParams ¶
type QueryPaginationParams struct { query.PageRequest Desc bool `json:"desc" yaml:"desc"` }
type QueryResult ¶
type QueryResult struct { Status int `json:"status"` Result json.RawMessage `json:"result"` }
QueryResult wraps querier result with HTTP status to return to application.
Click to show internal directories.
Click to hide internal directories.