rpc

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: Apache-2.0 Imports: 10 Imported by: 2,048

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands added in v0.2.0

func AddCommands(cmd *cobra.Command)

AddCommands adds a number of rpc-related subcommands

func BlockRequestHandlerFn

func BlockRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

REST handler to get a block

func GetChainHeight

func GetChainHeight(ctx context.CoreContext) (int64, error)

get the current blockchain height

func LatestBlockRequestHandlerFn

func LatestBlockRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

REST handler to get the latest block

func LatestValidatorSetRequestHandlerFn

func LatestValidatorSetRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

Latest Validator Set REST handler

func NodeInfoRequestHandlerFn

func NodeInfoRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

REST handler for node info

func NodeSyncingRequestHandlerFn

func NodeSyncingRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

REST handler for node syncing

func RegisterRoutes added in v0.2.0

func RegisterRoutes(ctx context.CoreContext, r *mux.Router)

Register REST endpoints

func ValidatorSetRequestHandlerFn

func ValidatorSetRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

Validator Set at a height REST handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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