dal

package
v0.0.0-...-6c424d2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dal

type Dal struct {
	DB *gorm.DB
}

func NewDal

func NewDal(db *gorm.DB) *Dal

func (*Dal) GetElementBlocks

func (d *Dal) GetElementBlocks(pattern string) ([]model.BlockInfo, error)

func (*Dal) GetSyncBlockByName

func (d *Dal) GetSyncBlockByName(name string) (*model.SyncBlock, error)

func (*Dal) UpdateBlockByName

func (d *Dal) UpdateBlockByName(name, blockHash string, blockHeight int64) error

func (*Dal) UpsertBlockInfo

func (d *Dal) UpsertBlockInfo(data *model.BlockInfo) error

Jump to

Keyboard shortcuts

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