Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParamProposalHandler = NewProposalHandler(cli.GetCmdSubmitParamChangeProposal, rest.ParamProposalRESTHandler)
View Source
var UpgradeProposalHandler = NewProposalHandler(cli.GetCmdSubmitUpgradeProposal, rest.UpgradeProposalRESTHandler)
Functions ¶
This section is empty.
Types ¶
type CLIHandlerFn ¶
function to create the cli handler
type ProposalHandler ¶
type ProposalHandler struct { CLIHandler CLIHandlerFn RESTHandler RESTHandlerFn }
The combined type for a proposal handler for both cli and rest
func NewProposalHandler ¶
func NewProposalHandler(cliHandler CLIHandlerFn, restHandler RESTHandlerFn) ProposalHandler
NewProposalHandler creates a new ProposalHandler object
type RESTHandlerFn ¶
type RESTHandlerFn func(context.CLIContext) rest.ProposalRESTHandler
function to create the rest handler
Click to show internal directories.
Click to hide internal directories.