model

package
Version: v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncBlockHeader = "SyncHeader"
	DeliverPackage  = "DeliverPackage"

	Created = "Created"
	Success = "Success"
	Failure = "Failed"
)

Variables

This section is empty.

Functions

func InitTables

func InitTables(db *gorm.DB)

Types

type RelayTransaction

type RelayTransaction struct {
	Id int64

	TxHash string
	Type   string

	ChannelId uint8
	Sequence  uint64
	BCHeight  uint64

	TxStatus   string
	TxGasPrice uint64
	TxGasLimit uint64
	TxUsedGas  uint64
	TxFee      uint64
	TxHeight   uint64

	CreateTime int64
	UpdateTime int64
}

func (RelayTransaction) TableName

func (RelayTransaction) TableName() string

type Statistic

type Statistic struct {
	Id int64

	TotalTx          int64
	SuccessTx        int64
	FailedTx         int64
	SyncHeaderTx     int64
	DeliverPackageTx int64

	AccumulatedTotalTxFee   string
	AccumulatedSuccessTxFee string
	AccumulatedFailedTxFee  string
	UpdateTime              int64
}

func (Statistic) TableName

func (Statistic) TableName() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL