api

package
v0.0.9-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIBackend

type APIBackend struct {
	EpochExtractor epochextractor.EpochExtractor
}

func (*APIBackend) ConsensusInfoByEpochRange

func (backend *APIBackend) ConsensusInfoByEpochRange(
	fromEpoch,
	toEpoch eth2Types.Epoch,
) map[eth2Types.Epoch]*types.MinimalEpochConsensusInfo

func (*APIBackend) CurrentEpoch

func (backend *APIBackend) CurrentEpoch() eth2Types.Epoch

func (*APIBackend) SubscribeNewEpochEvent

func (backend *APIBackend) SubscribeNewEpochEvent(ch chan<- *types.MinimalEpochConsensusInfo) event.Subscription

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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