model

package
v1.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTables

func InitTables(db *gorm.DB)

Types

type BlockLog

type BlockLog struct {
	Id         int64
	Chain      string
	BlockHash  string
	ParentHash string
	Height     int64
	BlockTime  int64
	CreateTime int64
}

func (*BlockLog) BeforeCreate

func (l *BlockLog) BeforeCreate() (err error)

func (BlockLog) TableName

func (BlockLog) TableName() string

type ClaimLog

type ClaimLog struct {
	Id        int64
	Sequence  int64
	ClaimType int8
	Claim     string `gorm:"type:text"`

	Status       TxStatus
	BlockHash    string
	TxHash       string
	Height       int64
	ConfirmedNum int64
	CreateTime   int64
	UpdateTime   int64
}

func (ClaimLog) TableName

func (ClaimLog) TableName() string

type TxStatus

type TxStatus int
const (
	TxStatusInit      TxStatus = 0
	TxStatusConfirmed TxStatus = 1
	TxStatusClaimed   TxStatus = 2
)

Jump to

Keyboard shortcuts

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