Documentation
¶
Index ¶
- Constants
- func NodeInfoRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func NodeSyncingRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func QueryBalancesRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func RegisterRoutes(clientCtx client.Context, r *mux.Router)
- type NodeInfoResponse
- type SyncingResponse
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
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.