chain

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetStatusHttpHandler

func NewGetStatusHttpHandler(db *store.Store, client *client.Client) *getStatusHttpHandler

func NewGetStatusUseCase

func NewGetStatusUseCase(db *store.Store, c *client.Client) *getStatusUseCase

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"`

	ChainName string `json:"chain_name"`
	ChainType string `json:"chain_type"`

	NodeName         string            `json:"node_name"`
	NodeVersion      string            `json:"node_version"`
	NodeLocalPeerUID string            `json:"node_local_peer_uid"`
	NodeHealth       string            `json:"node_health"`
	NodeRoles        []string          `json:"node_roles"`
	NodeProperties   map[string]string `json:"node_properties"`

	GenesisHash string `json:"genesis_hash"`

	IndexingStarted    bool       `json:"indexing_started"`
	LastIndexVersion   int64      `json:"last_index_version"`
	LastIndexedHeight  int64      `json:"last_indexed_height"`
	LastIndexedSession int64      `json:"last_indexed_session"`
	LastIndexedEra     int64      `json:"last_indexed_era"`
	LastSpecVersion    string     `json:"chain_spec_version"`
	LastIndexedTime    types.Time `json:"last_indexed_time"`
	LastIndexedAt      types.Time `json:"last_indexed_at"`
	Lag                int64      `json:"indexing_lag"`
}

func ToDetailsView

func ToDetailsView(recentSyncable *model.Syncable, headResponse *chainpb.GetHeadResponse, statusResponse *chainpb.GetStatusResponse) *DetailsView

type GetStatusCmdHandler

type GetStatusCmdHandler struct {
	// contains filtered or unexported fields
}

func NewGetStatusCmdHandler

func NewGetStatusCmdHandler(db *store.Store, c *client.Client) *GetStatusCmdHandler

func (*GetStatusCmdHandler) Handle

func (h *GetStatusCmdHandler) Handle(ctx context.Context)

Jump to

Keyboard shortcuts

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