rest

package
v0.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestMarketID = "market_id"
)

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)

RegisterRoutes - Central function to define routes that get registered by the main application

Types

type PostPriceReq

type PostPriceReq struct {
	BaseReq  rest.BaseReq `json:"base_req"`
	MarketID string       `json:"market_id"`
	Price    string       `json:"price"`
	Expiry   string       `json:"expiry"`
}

PostPriceReq defines the properties of a PostPrice request's body.

Jump to

Keyboard shortcuts

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