chainSQLStorage

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type Storage

type Storage struct {
	Driver simpleSQLDatabase.IDriver
}

func (*Storage) GetAddressList

func (s *Storage) GetAddressList(page uint64) (ret rowsWithCount.Entity, err error)

func (*Storage) GetBlock

func (s *Storage) GetBlock(height uint64) (blk chainTables.BlockListRow, err error)

func (*Storage) GetBlockByHash

func (s *Storage) GetBlockByHash(hash string) (blk chainTables.BlockListRow, err error)

func (*Storage) GetBlockList

func (s *Storage) GetBlockList(start uint64) (blocks []chainTables.BlockListRow, err error)

func (*Storage) GetRequestByApplicationAndAction

func (s *Storage) GetRequestByApplicationAndAction(app string, act string, page uint64) (ret rowsWithCount.Entity, err error)

func (*Storage) GetRequestByHash

func (s *Storage) GetRequestByHash(hash string) (req chainTables.RequestRow, err error)

func (*Storage) GetRequestByHeight

func (s *Storage) GetRequestByHeight(height string) (ret rowsWithCount.Entity, err error)

func (*Storage) GetRequestList

func (s *Storage) GetRequestList(page uint64) (ret rowsWithCount.Entity, err error)

func (*Storage) StoreAddress

func (s *Storage) StoreAddress(blk block.Entity, req blockchainRequest.Entity) (err error)

func (*Storage) StoreBlock

func (s *Storage) StoreBlock(blk block.Entity) (err error)

func (*Storage) StoreTransaction

func (s *Storage) StoreTransaction(blk block.Entity, req blockchainRequest.Entity, result applicationResult.Entity) (err error)

Jump to

Keyboard shortcuts

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