models

package
v0.0.0-...-a529750 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fan

type Fan struct {
	FanNumber int
	RPM       int
}

type Hashboard

type Hashboard struct {
	BoardNumber             int
	NoOfChips               int
	MalfunctioningChipsList []int
	HWErrors                int
	ChipFrequency           int
	CurrentHashRate         float64
	PICTemperature          []int
	PCBTemperature          []int
	ChipTemperature         []int
}

type MinerStats

type MinerStats struct {
	MinerName    string
	CrawlerName  string
	MinerModel   string
	Status       constants.MinerStatus
	MinerVersion string
	Uptime       int
	HashRateUnit string
	Fans         []Fan
	HashBoards   []Hashboard
	Nonce        string // Generated Nonce to avoid consuming the same obj in redis
}

func (*MinerStats) MarshalBinary

func (m *MinerStats) MarshalBinary() ([]byte, error)

func (*MinerStats) UnmarshalBinary

func (m *MinerStats) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

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