Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchRepo ¶
type BatchRepo interface { GetAllBatchStatuses() []types.BatchStatus UpdateBatch(batch types.BatchStatus) error ReplaceBatch(from *big.Int, newTo *big.Int) error }
BatchRepo repository for batch status
type IndexRepo ¶
type IndexRepo interface { Store(indexData []*types.AddressIndex, blockIndex *types.BlockIndex, isBatch bool) error GetTransactionByAddress(address string, rows int, start int, fromTime time.Time, toTime time.Time) (int, []types.AddressIndex) GetTotalTransaction(address string, fromTime time.Time, toTime time.Time) int GetLastBlock() (types.BlockIndex, error) GetFirstBlock() (types.BlockIndex, error) DeleteOldBlocks(untilTime *big.Int) (int, error) GetBlocks(blockNumber string, rows int, start int) (int, []types.BlockIndex) SaveBlockIndex(blockIndex *types.BlockIndex) error }
IndexRepo to store index data
Click to show internal directories.
Click to hide internal directories.