batch

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithBlockRewardsSetter

func WithBlockRewardsSetter(setter execdb.BlockRewardsSetter) Parameter

WithBlockRewardsSetter sets the block rewards setter for this module.

func WithBlocksProvider

func WithBlocksProvider(provider execdb.BlocksProvider) Parameter

WithBlocksProvider sets the blocks provider for this module.

func WithInterval

func WithInterval(interval time.Duration) Parameter

WithInterval sets the interval between updates.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

func WithMonitor(monitor metrics.Service) Parameter

WithMonitor sets the monitor for the module.

func WithProcessConcurrency

func WithProcessConcurrency(concurrency int64) Parameter

WithProcessConcurrency sets the concurrency for the service.

func WithScheduler

func WithScheduler(scheduler scheduler.Service) Parameter

WithScheduler sets the scheduler for the module.

func WithStartHeight

func WithStartHeight(startHeight int64) Parameter

WithStartHeight sets the start height for this module.

func WithTransactionStateDiffsProvider

func WithTransactionStateDiffsProvider(provider execdb.TransactionStateDiffsProvider) Parameter

WithTransactionStateDiffsProvider sets the transaction sate diffs provider for this module.

func WithTransactionsProvider

func WithTransactionsProvider(provider execdb.TransactionsProvider) Parameter

WithTransactionsProvider sets the transactions provider for this module.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a chain database service.

func New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new service.

Jump to

Keyboard shortcuts

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