rest

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestRequestID = "request-id"
)

Rest variable names nolint

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(cliCtx client.Context, r *mux.Router)

RegisterHandlers defines routes that get registered by the main application

Types

type RequestRandomReq

type RequestRandomReq struct {
	BaseReq       rest.BaseReq `json:"base_req" yaml:"base_req"` // base req
	Consumer      string       `json:"consumer"`                 // request address
	BlockInterval uint64       `json:"block_interval"`           // block interval
	Oracle        bool         `json:"oracle"`                   // oracle method
	ServiceFeeCap sdk.Coins    `json:"service_fee_cap"`          // service fee cap
}

RequestRandomReq defines the properties of a request random request's body

Jump to

Keyboard shortcuts

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