mocks

package
v0.0.0-...-663aea3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBeaconAPIClient

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

func NewMockBeaconAPIClient

func NewMockBeaconAPIClient(
	subscribeToHeadEventsImpl func(context.Context, client.EventHandlerFunc) error,
) *MockBeaconAPIClient

func (*MockBeaconAPIClient) SubscribeToHeadEvents

func (m *MockBeaconAPIClient) SubscribeToHeadEvents(
	ctx context.Context,
	handler client.EventHandlerFunc,
) error

func (*MockBeaconAPIClient) WithDefaultInternalImplementations

func (m *MockBeaconAPIClient) WithDefaultInternalImplementations() *MockBeaconAPIClient

type MockRelayAPIClient

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

func NewMockRelayAPIClient

func NewMockRelayAPIClient(
	getRelayDataForSlotImpl func(context.Context, phase0.Slot) (*common.RelayData, error),
	getRelayAPIURLImp func() string,
) *MockRelayAPIClient

func (*MockRelayAPIClient) GetRelayAPIURL

func (m *MockRelayAPIClient) GetRelayAPIURL() string

func (*MockRelayAPIClient) GetRelayDataForSlot

func (m *MockRelayAPIClient) GetRelayDataForSlot(
	ctx context.Context,
	slot phase0.Slot,
) (*common.RelayData, error)

func (*MockRelayAPIClient) WithDefaultInternalImplementations

func (m *MockRelayAPIClient) WithDefaultInternalImplementations() *MockRelayAPIClient

Jump to

Keyboard shortcuts

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