metrics

package
v0.0.0-...-33416f3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 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 Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector() *Collector

func (*Collector) GetMetrics

func (c *Collector) GetMetrics() (float64, float64, uint32)

func (*Collector) UpdateBlockMetrics

func (c *Collector) UpdateBlockMetrics(blockTime float64, difficulty uint32)

func (*Collector) UpdateHashRate

func (c *Collector) UpdateHashRate(hashes uint64, duration time.Duration)

Jump to

Keyboard shortcuts

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