rest

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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      sdk.AccAddress `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