mock

package
v0.1.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenesisTimeProvider

func NewGenesisTimeProvider(genesisTime time.Time) eth2client.GenesisTimeProvider

NewGenesisTimeProvider returns a mock genesis time provider with the provided value.

func NewSpecProvider

func NewSpecProvider(slotDuration time.Duration,
	slotsPerEpoch uint64,
	epochsPerSyncCommitteePeriod uint64,
) eth2client.SpecProvider

NewSpecProvider returns a mock spec provider with the provided values.

Types

type GenesisTimeProvider

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

GenesisTimeProvider is a mock for eth2client.GenesisTimeProvider.

func (*GenesisTimeProvider) GenesisTime

func (m *GenesisTimeProvider) GenesisTime(ctx context.Context) (time.Time, error)

GenesisTime is a mock.

type SpecProvider

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

SpecProvider is a mock for eth2client.SpecProvider.

func (*SpecProvider) Spec

func (m *SpecProvider) Spec(ctx context.Context) (map[string]interface{}, error)

Spec is a mock.

Jump to

Keyboard shortcuts

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