repository

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

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

Directories

Path Synopsis
dao

Jump to

Keyboard shortcuts

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