chain

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetStatusHttpHandler

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

func NewGetStatusUseCase

func NewGetStatusUseCase(db *psql.Store, c figmentclient.Client) *getStatusUseCase

Types

type DetailsView

type DetailsView struct {
	AppName    string `json:"app_name"`
	AppVersion string `json:"app_version"`
	GoVersion  string `json:"go_version"`

	ChainId uint64 `json:"chain_id,omitempty"`

	IndexingStarted   bool       `json:"indexing_started"`
	LastIndexVersion  int64      `json:"last_index_version,omitempty"`
	LastIndexedHeight int64      `json:"last_indexed_height,omitempty"`
	LastIndexedTime   types.Time `json:"last_indexed_time,omitempty"`
	LastIndexedAt     types.Time `json:"last_indexed_at,omitempty"`
	Lag               int64      `json:"indexing_lag,omitempty"`
}

func ToDetailsView

func ToDetailsView(recentSyncable *model.Syncable, rawChainStatus *figmentclient.ChainStatus) *DetailsView

type GetStatusCmdHandler

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

func NewGetStatusCmdHandler

func NewGetStatusCmdHandler(db *psql.Store, c figmentclient.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