block

package
v0.0.0-...-ef390af Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	ID         string `gorm:"size:26;primary_key"`
	ChainID    string `gorm:"not null;index:chain_id"`
	BlockHash  string `gorm:"not null;index:block_hash"`
	ParentHash string `gorm:"not null;index:parent_hash"`
	Height     int64  `gorm:"not null;index:height"`
	BlockTime  int64
	CreateTime time.Time
}

func (*Log) BeforeCreate

func (b *Log) BeforeCreate(tx *gorm.DB) (err error)

func (Log) TableName

func (Log) TableName() string

Jump to

Keyboard shortcuts

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