rest

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InfoHandlerFn

func InfoHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

InfoHandlerFn - HTTP request handler to query the upgrade info

func RegisterRoutes

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

Types

type VersionInfo

type VersionInfo struct {
	Version        string `json:"version"`
	UpgradeVersion int64  `json:"upgrade_version"`
	StartHeight    int64  `json:"start_height"`
	ProposalID     int64  `json:"proposal_id"`
}

VersionInfo is the struct of version info

Jump to

Keyboard shortcuts

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