rest

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestAddress = "address"
	RestStartId = "start_id"
	RestLimit   = "limit"
)
View Source
const (
	ID         = "id"
	Feature    = "feature"
	AccAddress = "accAddress"
	From       = "from"
	FreezeType = "freeze-type"
	EndTime    = "end-time"
	Name       = "name"
	Amount     = "amount"
	To         = "to"
)

Variables

This section is empty.

Functions

func BoxListHandlerFn

func BoxListHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, boxType string) http.HandlerFunc

func BoxQueryHandlerFn

func BoxQueryHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, boxType string) http.HandlerFunc

func BoxQueryParamsHandlerFn

func BoxQueryParamsHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, boxType string) http.HandlerFunc

func BoxSearchHandlerFn

func BoxSearchHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, boxType string) http.HandlerFunc

func PostDepositBoxCreateHandlerFn

func PostDepositBoxCreateHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc

func PostDescribeHandlerFn

func PostDescribeHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, boxType string) http.HandlerFunc

func PostDisableFeatureHandlerFn

func PostDisableFeatureHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, boxType string) http.HandlerFunc

func PostFutureBoxCreateHandlerFn

func PostFutureBoxCreateHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc

func PostInjectHandlerFn

func PostInjectHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, boxType string, operation string) http.HandlerFunc

func PostInterestHandlerFn

func PostInterestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, operation string) http.HandlerFunc

func PostLockBoxCreateHandlerFn

func PostLockBoxCreateHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc

func PostWithdrawHandlerFn

func PostWithdrawHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, boxType string) http.HandlerFunc

Types

type PostBoxBaseReq

type PostBoxBaseReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
}

type PostDepositBoxReq

type PostDepositBoxReq struct {
	BaseReq                 rest.BaseReq `json:"base_req"`
	params.BoxDepositParams `json:"box"`
}

type PostDescriptionReq

type PostDescriptionReq struct {
	BaseReq     rest.BaseReq `json:"base_req"`
	Description string       `json:"description"`
}

type PostFutureBoxReq

type PostFutureBoxReq struct {
	BaseReq                rest.BaseReq `json:"base_req"`
	params.BoxFutureParams `json:"box"`
}

type PostLockBoxReq

type PostLockBoxReq struct {
	BaseReq              rest.BaseReq `json:"base_req"`
	params.BoxLockParams `json:"box"`
}

Jump to

Keyboard shortcuts

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