Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetStatusHttpHandler ¶
Types ¶
type DetailsView ¶
type DetailsView struct { AppName string `json:"app_name"` AppVersion string `json:"app_version"` GoVersion string `json:"go_version"` ClientInfo string `json:"client_info,omitempty"` ChainName string `json:"chain_name,omitempty"` ChainType string `json:"chain_type,omitempty"` NodeName string `json:"node_name,omitempty"` NodeVersion string `json:"node_version,omitempty"` NodeLocalPeerUID string `json:"node_local_peer_uid,omitempty"` NodeHealth string `json:"node_health,omitempty"` NodeRoles []string `json:"node_roles,omitempty"` NodeProperties map[string]string `json:"node_properties,omitempty"` GenesisHash string `json:"genesis_hash,omitempty"` // IndexingStarted is false if indexer has never run before, otherwise returns true IndexingStarted bool `json:"indexing_started"` // LastIndexVersion is config version of last indexed block LastIndexVersion int64 `json:"last_index_version,omitempty"` // LastIndexedHeight is height of last indexed block LastIndexedHeight int64 `json:"last_indexed_height,omitempty"` // LastIndexedSession is session of last indexed block LastIndexedSession int64 `json:"last_indexed_session,omitempty"` // LastIndexedSessionHeight is last indexed height where session was last in session LastIndexedSessionHeight int64 `json:"last_indexed_session_height,omitempty"` // LastIndexedEra is era of last indexed block LastIndexedEra int64 `json:"last_indexed_era,omitempty"` // LastIndexedEraHeight is last indexed height where era was last in era LastIndexedEraHeight int64 `json:"last_indexed_era_height,omitempty"` LastSpecVersion string `json:"chain_spec_version,omitempty"` // LastIndexedTime is last indexed block time LastIndexedTime types.Time `json:"last_indexed_time,omitempty"` // LastIndexedAt is last time a block was indexed LastIndexedAt types.Time `json:"last_indexed_at,omitempty"` // Lag is how many blocks the indexer is behind the current head of the chain Lag int64 `json:"indexing_lag,omitempty"` }
swagger:response ChainDetailsView
func ToDetailsView ¶
func ToDetailsView(recentSyncable *model.Syncable, headResponse *chainpb.GetHeadResponse, statusResponse *chainpb.GetStatusResponse, lastSessionHeight int64, lastEraHeight int64) *DetailsView
type GetStatusCmdHandler ¶
type GetStatusCmdHandler struct {
// contains filtered or unexported fields
}
func NewGetStatusCmdHandler ¶
func NewGetStatusCmdHandler(c *client.Client, syncablesDb store.Syncables) *GetStatusCmdHandler
func (*GetStatusCmdHandler) Handle ¶
func (h *GetStatusCmdHandler) Handle(ctx context.Context)
type GetStatusRequest ¶ added in v0.4.1
type GetStatusRequest struct { // IncludeChainStatus // // in: query IncludeChainStatus bool `json:"include_chain" form:"include_chain" binding:"-"` }
swagger:parameters getStatus
Click to show internal directories.
Click to hide internal directories.