rest

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 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 client.Context, 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