Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RefreshOnStart bool Disable bool OnChainMaxParallel int OnChainFrequency time.Duration }
Config provides configuration parametrs to the miner index.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index builds and provides information about FC miners.
func New ¶
func New(ds datastore.Datastore, clientBuilder lotus.ClientBuilder, h P2PHost, lr iplocation.LocationResolver, conf Config) (*Index, error)
New returns a new MinerIndex. It loads from ds any previous state and starts immediately making the index up to date.
func (*Index) Get ¶
func (mi *Index) Get() miner.IndexSnapshot
Get returns a copy of the current index information.
func (*Index) Listen ¶
func (mi *Index) Listen() <-chan struct{}
Listen returns a channel signaler to notify when new index information is available.
func (*Index) Unregister ¶
func (mi *Index) Unregister(c chan struct{})
Unregister unregisters a channel signaler from the signaler hub.
Click to show internal directories.
Click to hide internal directories.