rpc

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(cmd *cobra.Command)

AddCommands adds a number of rpc-related subcommands

func BlockRequestHandler

func BlockRequestHandler(w http.ResponseWriter, r *http.Request)

func GetChainHeight

func GetChainHeight() (int64, error)

func GetValidators

func GetValidators(height *int64) ([]byte, error)

func LatestBlockRequestHandler

func LatestBlockRequestHandler(w http.ResponseWriter, r *http.Request)

func LatestValidatorsetRequestHandler

func LatestValidatorsetRequestHandler(w http.ResponseWriter, r *http.Request)

func NodeInfoRequestHandler

func NodeInfoRequestHandler(w http.ResponseWriter, r *http.Request)

func NodeSyncingRequestHandler

func NodeSyncingRequestHandler(w http.ResponseWriter, r *http.Request)

func RegisterRoutes

func RegisterRoutes(r *mux.Router)

func ValidatorsetRequestHandler

func ValidatorsetRequestHandler(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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