remote

package
v1.5.0-rc10 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 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 WithBaseURL

func WithBaseURL(url string) Parameter

WithBaseURL sets the base URL for fetching fee recipients.

func WithCACert

func WithCACert(cert []byte) Parameter

WithCACert sets the bytes of the certificate authority TLS certificate.

func WithClientCert

func WithClientCert(cert []byte) Parameter

WithClientCert sets the bytes of the client TLS certificate.

func WithClientKey

func WithClientKey(key []byte) Parameter

WithClientKey sets the bytes of the client TLS key.

func WithDefaultFeeRecipient

func WithDefaultFeeRecipient(feeRecipient bellatrix.ExecutionAddress) Parameter

WithDefaultFeeRecipient sets the default fee recipient.

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 WithTimeout

func WithTimeout(timeout time.Duration) Parameter

WithTimeout sets the timeout for calls made by the module.

type Service

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

Service is a fee recipient provider service.

func New

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

New creates a new fee recipient provider service.

func (*Service) FeeRecipients

func (s *Service) FeeRecipients(ctx context.Context,
	indices []phase0.ValidatorIndex,
) (
	map[phase0.ValidatorIndex]bellatrix.ExecutionAddress,
	error,
)

FeeRecipients returns the fee recipients for the given validators.

Jump to

Keyboard shortcuts

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