api

package
v0.0.17-beta Latest Latest
Warning

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

Go to latest
Published: May 19, 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 {
	ConsensusInfoFeed iface.ConsensusInfoFeed
	ConsensusInfoDB   db.ROnlyConsensusInfoDB
}

func (*APIBackend) ConsensusInfoByEpochRange

func (backend *APIBackend) ConsensusInfoByEpochRange(fromEpoch uint64) []*types.MinimalEpochConsensusInfo

func (*APIBackend) CurrentEpoch

func (backend *APIBackend) CurrentEpoch() uint64

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