consumer

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatesConsumer

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

func NewAggregatesConsumer

func NewAggregatesConsumer(txs repository.Txs, srvAggregates service.Aggregates) AggregatesConsumer

type CacheConsumer

type CacheConsumer interface {
	RunBlocks(ctx context.Context) error
	RunTransactions(ctx context.Context) error
}

func NewCacheConsumer

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

type SearchBlocksConsumer

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

func NewSearchBlocksConsumer

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

type SearchTxConsumer

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

func NewSearchTxConsumer

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

Jump to

Keyboard shortcuts

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