consumer

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAggregatesConsumer

func NewAggregatesConsumer(totals repository.TotalsCache, blocks repository.Blocks, txs repository.Txs) *aggregatesConsumer

func NewCacheConsumer

func NewCacheConsumer(blocks repository.BlocksCache, blocksCh chan *model.BlockInfo,
	txCh chan *models.Tx, txs repository.TransactionsCache) *cacheConsumer

func NewSearchBlocksConsumer

func NewSearchBlocksConsumer(rdb *redis.Client,
	blocksTopic string, repo repository.Search) *searchBlocks

func NewSearchTxConsumer

func NewSearchTxConsumer(rdb *redis.Client,
	blocksTopic string, repo repository.Search) *searchTxPublisher

Types

type SearchBlocksConsumer

type SearchBlocksConsumer interface {
	Consume(ctx context.Context) error
}

type SearchTxConsumer

type SearchTxConsumer interface {
	Consume(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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