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: 17 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 WithAddresses

func WithAddresses(addresses []types.Address) Parameter

WithAddresses sets the addresses for this module.

func WithBalancesProvider

func WithBalancesProvider(provider execclient.BalancesProvider) Parameter

WithBalancesProvider sets the balances provider for this module.

func WithBalancesSetter

func WithBalancesSetter(setter execdb.BalancesSetter) Parameter

WithBalancesSetter sets the balances setter for this module.

func WithBlocksProvider

func WithBlocksProvider(provider execclient.BlocksProvider) Parameter

WithBlocksProvider sets the blocks provider for this module.

func WithChainHeightProvider

func WithChainHeightProvider(provider execclient.ChainHeightProvider) Parameter

WithChainHeightProvider sets the chain height provider for this module.

func WithDBBalancesProvider

func WithDBBalancesProvider(provider execdb.BalancesProvider) Parameter

WithDBBalancesProvider sets the database balances 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 WithTrackDistance added in v0.4.4

func WithTrackDistance(trackDistance uint32) Parameter

WithTrackDistance sets the track distance 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.

func (*Service) SetAddresses added in v0.4.4

func (s *Service) SetAddresses(addresses []types.Address)

SetAddresses sets the addresses to monitor.

Jump to

Keyboard shortcuts

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