analyservice

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 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:"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

Jump to

Keyboard shortcuts

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