rest

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodGet = "GET"
)

Variables

This section is empty.

Functions

func NodeInfoRequestHandlerFn added in v1.0.5

func NodeInfoRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

REST handler for node info

func NodeSyncingRequestHandlerFn added in v1.0.5

func NodeSyncingRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

REST handler for node syncing

func QueryBalancesRequestHandlerFn

func QueryBalancesRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

func RegisterRoutes

func RegisterRoutes(clientCtx client.Context, r *mux.Router)

RegisterRoutes registers chain-related REST handlers to a router This is not intended to stay here, backwards compatibility for KEPLR

Types

type NodeInfoResponse added in v1.0.5

type NodeInfoResponse struct {
	p2p.DefaultNodeInfo `json:"node_info"`

	ApplicationVersion version.Info `json:"application_version"`
}

NodeInfoResponse defines a response type that contains node status and version information.

type SyncingResponse added in v1.0.5

type SyncingResponse struct {
	Syncing bool `json:"syncing"`
}

SyncingResponse defines a response type that contains node syncing information.

Jump to

Keyboard shortcuts

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