types

package
v0.7.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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.

func QueryOK

func QueryOK(legacyQuerierCdc *codec.LegacyAmino, result interface{}) ([]byte, error)

QueryOK creates and marshals a QueryResult instance with HTTP status OK.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL