miner

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainIndex

type ChainIndex struct {
	LastUpdated int64
	Miners      map[string]OnChainData
}

ChainIndex contains on-chain information about miners.

type IndexSnapshot

type IndexSnapshot struct {
	Meta    MetaIndex
	OnChain ChainIndex
}

IndexSnapshot contains on-chain and off-chain information about miners.

type Location

type Location struct {
	Country   string
	Longitude float64
	Latitude  float64
}

Location contains geeoinformation.

type Meta

type Meta struct {
	LastUpdated time.Time
	UserAgent   string
	Location    Location
	Online      bool
}

Meta contains off-chain information of a miner.

type MetaIndex

type MetaIndex struct {
	Online  uint32
	Offline uint32
	Info    map[string]Meta
}

MetaIndex contains off-chain information about miners.

type Module

type Module interface {
	Get() IndexSnapshot
	Listen() <-chan struct{}
	Unregister(c chan struct{})
}

Module provides information about miners in the Filecoin network.

type OnChainData

type OnChainData struct {
	Power         uint64
	RelativePower float64
	SectorSize    uint64
}

OnChainData contains on-chain data about a miner.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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