standard

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 23 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 WithActivitySem added in v0.6.11

func WithActivitySem(sem *semaphore.Weighted) Parameter

WithActivitySem sets the activity semaphore for this module.

func WithBlocks

func WithBlocks(blocks blocks.Service) Parameter

WithBlocks sets the blocks service for this module.

func WithChainDB

func WithChainDB(chainDB chaindb.Service) Parameter

WithChainDB sets the chain database for this module.

func WithChainTime

func WithChainTime(chainTime chaintime.Service) Parameter

WithChainTime sets the chain time service for this module.

func WithETH2Client

func WithETH2Client(eth2Client eth2client.Service) Parameter

WithETH2Client sets the Ethereum 2 client for this module.

func WithFinalityHandlers added in v0.3.0

func WithFinalityHandlers(handlers []handlers.FinalityHandler) Parameter

WithFinalityHandlers sets the finality handlers for this module.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor added in v0.3.0

func WithMonitor(monitor metrics.Service) Parameter

WithMonitor sets the monitor for the module.

func WithScheduler added in v0.8.3

func WithScheduler(scheduler scheduler.Service) Parameter

WithScheduler sets the scheduler for this module.

type Service

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

Service is a finalizer service.

func New

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

New creates a new service.

func (*Service) Finalize added in v0.8.3

func (s *Service) Finalize(
	ctx context.Context,
	finality *apiv1.Finality,
)

Finalize finalizes data in the database according to the given finality.

Jump to

Keyboard shortcuts

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