individual

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 WithBalanceChanges

func WithBalanceChanges(enable bool) Parameter

WithBalanceChanges sets the storage of balance change data.

func WithBlockReplaysProvider

func WithBlockReplaysProvider(provider execclient.BlockReplaysProvider) Parameter

WithBlockReplaysProvider sets the block replays provider for this module.

func WithBlocksProvider

func WithBlocksProvider(provider execclient.BlocksProvider) Parameter

WithBlocksProvider sets the blocks provider for this module.

func WithBlocksSetter

func WithBlocksSetter(setter execdb.BlocksSetter) Parameter

WithBlocksSetter sets the blocks setter for this module.

func WithChainHeightProvider

func WithChainHeightProvider(provider execclient.ChainHeightProvider) Parameter

WithChainHeightProvider sets the chain height provider for this module.

func WithEventsSetter

func WithEventsSetter(setter execdb.EventsSetter) Parameter

WithEventsSetter sets the events setter for this module.

func WithInterval added in v0.1.3

func WithInterval(interval time.Duration) Parameter

WithInterval sets the interval between updates.

func WithIssuanceProvider

func WithIssuanceProvider(provider execclient.IssuanceProvider) Parameter

WithIssuanceProvider sets the issuance provider for this module.

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 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 WithStorageChanges

func WithStorageChanges(enable bool) Parameter

WithStorageChanges sets the storage of storage change data.

func WithTrackDistance added in v0.4.4

func WithTrackDistance(trackDistance uint32) Parameter

WithTrackDistance sets the track distance for this module.

func WithTransactionEvents

func WithTransactionEvents(enable bool) Parameter

WithTransactionEvents sets the storage of transaction event data.

func WithTransactionReceiptsProvider

func WithTransactionReceiptsProvider(provider execclient.TransactionReceiptsProvider) Parameter

WithTransactionReceiptsProvider sets the tranasaction receipts provider for this module.

func WithTransactionStateDiffsSetter

func WithTransactionStateDiffsSetter(setter execdb.TransactionStateDiffsSetter) Parameter

WithTransactionStateDiffsSetter sets the block transactions changes setter for this module.

func WithTransactions

func WithTransactions(enable bool) Parameter

WithTransactions sets the storage of transaction data.

func WithTransactionsSetter

func WithTransactionsSetter(setter execdb.TransactionsSetter) Parameter

WithTransactionsSetter sets the transactions setter 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