collector

package
v0.0.0-...-eea4d52 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPowerCollector

func NewPowerCollector(stats func() ([]PowerStats, error)) prometheus.Collector

Types

type PowerStats

type PowerStats struct {
	CurrentPower float64
	YieldToday   float64
	YieldMonth   float64
	YieldYear    float64
	YieldTotal   float64
}

func FetchSolarStats

func FetchSolarStats(db adapter.DatabaseAdapter) ([]PowerStats, error)

Jump to

Keyboard shortcuts

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