Documentation ¶
Index ¶
- func Load()
- type Storage
- func (s *Storage) GetAddressList(page uint64) (ret rowsWithCount.Entity, err error)
- func (s *Storage) GetBlock(height uint64) (blk chainTables.BlockListRow, err error)
- func (s *Storage) GetBlockByHash(hash string) (blk chainTables.BlockListRow, err error)
- func (s *Storage) GetBlockList(start uint64) (blocks []chainTables.BlockListRow, err error)
- func (s *Storage) GetRequestByApplicationAndAction(app string, act string, page uint64) (ret rowsWithCount.Entity, err error)
- func (s *Storage) GetRequestByHash(hash string) (req chainTables.RequestRow, err error)
- func (s *Storage) GetRequestByHeight(height string) (ret rowsWithCount.Entity, err error)
- func (s *Storage) GetRequestList(page uint64) (ret rowsWithCount.Entity, err error)
- func (s *Storage) StoreAddress(blk block.Entity, req blockchainRequest.Entity) (err error)
- func (s *Storage) StoreBlock(blk block.Entity) (err error)
- func (s *Storage) StoreTransaction(blk block.Entity, req blockchainRequest.Entity, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*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 (*Storage) StoreTransaction ¶
func (s *Storage) StoreTransaction(blk block.Entity, req blockchainRequest.Entity, result applicationResult.Entity) (err error)
Click to show internal directories.
Click to hide internal directories.