Documentation ¶
Overview ¶
Package rest defines the RESTful service for the gov module.
Index ¶
Constants ¶
View Source
const ( RestParamsType = "type" RestProposalID = "proposal-id" RestDepositor = "depositor" RestVoter = "voter" RestProposalStatus = "status" )
REST Variable names
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, phs []govRest.ProposalRESTHandler)
RegisterRoutes is the central function to define routes that get registered by the main application.
Types ¶
type ProposalRESTHandler ¶
type ProposalRESTHandler struct { SubRoute string Handler func(http.ResponseWriter, *http.Request) }
ProposalRESTHandler defines a REST handler implemented in another module. The sub-route is mounted on the governance REST handler.
type VoteWithPower ¶
type VotesWithPower ¶
type VotesWithPower []VoteWithPower
Click to show internal directories.
Click to hide internal directories.