Documentation ¶
Index ¶
Constants ¶
View Source
const (
CompressedBlockTableName = `compressed_block`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressedBlock ¶
type CompressedBlock struct { gorm.Model BlockSize uint16 BlockHeight int64 StateRoot string PublicData string Timestamp int64 PublicDataOffsets string }
func (*CompressedBlock) TableName ¶
func (*CompressedBlock) TableName() string
type CompressedBlockModel ¶
type CompressedBlockModel interface { CreateCompressedBlockTable() error DropCompressedBlockTable() error GetCompressedBlocksBetween(start, end int64) (blocksForCommit []*CompressedBlock, err error) CreateCompressedBlockInTransact(tx *gorm.DB, block *CompressedBlock) error }
func NewCompressedBlockModel ¶
func NewCompressedBlockModel(db *gorm.DB) CompressedBlockModel
Click to show internal directories.
Click to hide internal directories.