interactors

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBLSKeysFetcher

func NewBLSKeysFetcher(
	httpClientWrapper HTTPClientWrapper,
	addresses []core.Address,
	timeBetweenQueries time.Duration,
) (*blsKeysFetcher, error)

NewBLSKeysFetcher creates a new instance of type bls keys fetcher

func NewValidatorStatisticsInteractor

func NewValidatorStatisticsInteractor(httpClientWrapper HTTPClientWrapper) (*validatorStatisticsInteractor, error)

NewValidatorStatisticsInteractor can interact with the validator statistics API endpoint route

Types

type HTTPClientWrapper

type HTTPClientWrapper interface {
	GetHTTP(ctx context.Context, endpoint string) ([]byte, int, error)
	PostHTTP(ctx context.Context, endpoint string, data []byte) ([]byte, int, error)
	IsInterfaceNil() bool
}

HTTPClientWrapper defines what an HTTP client wrapper should implement

Jump to

Keyboard shortcuts

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