Documentation ¶
Index ¶
- Constants
- func ConvertToBatch(blocks []blockatlas.Block, ctx context.Context) blockatlas.Txs
- func FetchBlocks(params Params, lastParsedBlock, currentBlock int64, ctx context.Context) []blockatlas.Block
- func GetBlocksIntervalToFetch(params Params, ctx context.Context) (int64, int64, error)
- func GetInterval(value int, minInterval, maxInterval time.Duration) time.Duration
- func PublishTransactionsBatch(params Params, txs blockatlas.Txs, ctx context.Context)
- func RunParser(params Params)
- func SaveLastParsedBlock(params Params, blocks []blockatlas.Block, ctx context.Context) error
- type GetBlockByNumber
- type Params
Constants ¶
View Source
const MinTxsBatchLimit = 500
Variables ¶
This section is empty.
Functions ¶
func ConvertToBatch ¶
func ConvertToBatch(blocks []blockatlas.Block, ctx context.Context) blockatlas.Txs
func FetchBlocks ¶
func GetInterval ¶
func PublishTransactionsBatch ¶
func PublishTransactionsBatch(params Params, txs blockatlas.Txs, ctx context.Context)
func SaveLastParsedBlock ¶
Types ¶
type GetBlockByNumber ¶
type GetBlockByNumber func(num int64) (*blockatlas.Block, error)
Click to show internal directories.
Click to hide internal directories.