Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinerScore ¶
MinerScore contains a score for a miner.
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module consolidates different sources of information to create a reputation rank of FC miners.
func (*Module) AddSource ¶
AddSource adds a new external Source to be considered for reputation generation.
func (*Module) GetTopMiners ¶
func (rm *Module) GetTopMiners(n int) ([]MinerScore, error)
GetTopMiners gets the top n miners with best score.
func (*Module) QueryMiners ¶
func (rm *Module) QueryMiners(excludedMiners []string, countryCodes []string, trustedMiners []string) ([]MinerScore, error)
QueryMiners makes a filtered query on the scored-sorted miner list. Empty filter slices represent no-filters applied.
Click to show internal directories.
Click to hide internal directories.