analyservice

package
v0.0.0-...-add777e Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMysqlORM

func NewMysqlORM(url string) *backend.ORM

Types

type DataAnalysis

type DataAnalysis struct {
	Height        int64                   `json:"height"`
	Deals         []*backend.Deal         `json:"deals"`
	FeeDetails    []*token.FeeDetail      `json:"fee_details"`
	NewOrders     []*backend.Order        `json:"new_orders"`
	UpdatedOrders []*backend.Order        `json:"updated_orders"`
	Trans         []*backend.Transaction  `json:"trans"`
	MatchResults  []*backend.MatchResult  `json:"match_results"`
	DepthBook     keeper.BookRes          `json:"depth_book"`
	AccStates     []token.AccountResponse `json:"account_states"`
	SwapInfos     []*backend.SwapInfo     `json:"swap_infos"`
	ClaimInfos    []*backend.ClaimInfo    `json:"swap_infos"`
}

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

Jump to

Keyboard shortcuts

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