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, api *apistruct.FullNodeStruct) (*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) 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.
Click to show internal directories.
Click to hide internal directories.