powergate: github.com/textileio/powergate/index/faults/module Index | Files

package module

import "github.com/textileio/powergate/index/faults/module"


Package Files

faults.go metrics.go

type Index Uses

type Index struct {
    // contains filtered or unexported fields

Index builds and provides faults history of miners.

func New Uses

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 Uses

func (s *Index) Close() error

Close closes the FaultIndex.

func (*Index) Get Uses

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

Get returns a copy of the current index information.

func (*Index) Listen Uses

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

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

func (*Index) Unregister Uses

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

Unregister frees a channel from the signaler hub.

Package module imports 16 packages (graph) and is imported by 6 packages. Updated 2020-09-21. Refresh now. Tools for package owners.