Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMysqlORM ¶
Types ¶
type DataAnalysis ¶
type DataAnalysis struct { Height int64 `json:"height"` Deals []*backend.Deal `json:"deals"` FeeDetails []*token.FeeDetail `json:"feeDetails"` NewOrders []*backend.Order `json:"newOrders"` UpdatedOrders []*backend.Order `json:"updatedOrders"` Trans []*backend.Transaction `json:"trans"` MatchResults []*backend.MatchResult `json:"matchResults"` DepthBook keeper.BookRes `json:"depthBook"` AccStates []token.AccountResponse `json:"accStates"` }
the data enqueue to mysql
func NewDataAnalysis ¶
func NewDataAnalysis() *DataAnalysis
func (*DataAnalysis) BlockHeight ¶
func (d *DataAnalysis) BlockHeight() int64
func (*DataAnalysis) DataType ¶
func (d *DataAnalysis) DataType() types.StreamDataKind
func (*DataAnalysis) Empty ¶
func (d *DataAnalysis) Empty() bool
func (*DataAnalysis) SetData ¶
func (d *DataAnalysis) SetData(ctx sdk.Context, orderKeeper types.OrderKeeper, tokenKeeper types.TokenKeeper, cache *common.Cache)
nolint
Click to show internal directories.
Click to hide internal directories.