blockchainstate

package
v0.0.0-...-92c45cb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainStatePublishUseCase

type BlockchainStatePublishUseCase interface {
	Execute(ctx context.Context, bcState *domain.BlockchainState) error
}

func NewBlockchainStatePublishUseCase

func NewBlockchainStatePublishUseCase(
	logger *slog.Logger,
	cache redis.Cacher,
) BlockchainStatePublishUseCase

type BlockchainStateSubscribeUseCase

type BlockchainStateSubscribeUseCase interface {
	Execute(ctx context.Context) redis.RedisSubscriber
}

func NewBlockchainStateSubscribeUseCase

func NewBlockchainStateSubscribeUseCase(
	logger *slog.Logger,
	cache redis.Cacher,
) BlockchainStateSubscribeUseCase

type BlockchainStateUpdateDetectorUseCase

type BlockchainStateUpdateDetectorUseCase interface {
	Execute(ctx context.Context) (*domain.BlockchainState, error)
	Terminate()
}

type GetBlockchainStateUseCase

type GetBlockchainStateUseCase interface {
	Execute(ctx context.Context, chainID uint16) (*domain.BlockchainState, error)
}

type UpsertBlockchainStateUseCase

type UpsertBlockchainStateUseCase interface {
	Execute(ctx context.Context, bcs *domain.BlockchainState) error
}

Jump to

Keyboard shortcuts

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