module

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

Index builds and provides faults history of miners.

func New

func New(ds datastore.TxnDatastore, clientBuilder lotus.ClientBuilder) (*Index, error)

New returns a new FaultIndex. It will load previous state from ds, and immediately start getting in sync with new on-chain.

func (*Index) Close

func (s *Index) Close() error

Close closes the FaultIndex.

func (*Index) Get

func (s *Index) Get() faults.IndexSnapshot

Get returns a copy of the current index information.

func (*Index) Listen

func (s *Index) Listen() <-chan struct{}

Listen returns a a signaler channel which signals that index information has been updated.

func (*Index) Unregister

func (s *Index) Unregister(c chan struct{})

Unregister frees a channel from the signaler hub.

Jump to

Keyboard shortcuts

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