Documentation ¶
Rendered for darwin/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetAll = getAll GetTemperature = getTemperature GetFans = getFans GetBattery = getBattery GetPower = getPower GetVoltage = getVoltage GetCurrent = getCurrent )
monkey patching for testing
Functions ¶
This section is empty.
Types ¶
type InfluxOutput ¶ added in v0.7.0
type InfluxOutput struct {
// contains filtered or unexported fields
}
func (InfluxOutput) All ¶ added in v0.7.0
func (io InfluxOutput) All()
func (InfluxOutput) Battery ¶ added in v0.7.0
func (io InfluxOutput) Battery()
func (InfluxOutput) Current ¶ added in v0.7.0
func (io InfluxOutput) Current()
func (InfluxOutput) Fans ¶ added in v0.7.0
func (io InfluxOutput) Fans()
func (InfluxOutput) Power ¶ added in v0.7.0
func (io InfluxOutput) Power()
func (InfluxOutput) Temperature ¶ added in v0.7.0
func (io InfluxOutput) Temperature()
func (InfluxOutput) Voltage ¶ added in v0.7.0
func (io InfluxOutput) Voltage()
type JSONOutput ¶
type JSONOutput struct {
// contains filtered or unexported fields
}
func (JSONOutput) All ¶
func (jo JSONOutput) All()
func (JSONOutput) Battery ¶
func (jo JSONOutput) Battery()
func (JSONOutput) Current ¶
func (jo JSONOutput) Current()
func (JSONOutput) Fans ¶
func (jo JSONOutput) Fans()
func (JSONOutput) Power ¶
func (jo JSONOutput) Power()
func (JSONOutput) Temperature ¶
func (jo JSONOutput) Temperature()
func (JSONOutput) Voltage ¶
func (jo JSONOutput) Voltage()
type Output ¶
type Output interface { // All prints all the detected sensors results All() // Battery prints the detected battery sensor results Battery() // Current prints the current sensor results Current() // Fans prints the detected fan sensor results Fans() // Temperature prints detected temperature sensor results Temperature() // Power prints detected power sensor results Power() // Voltage prints detected voltage sensor results Voltage() }
func NewInfluxOutput ¶ added in v0.7.0
func NewInfluxOutput() Output
func NewJSONOutput ¶
func NewJSONOutput() Output
func NewTableOutput ¶
func OutputFactory ¶
type TableOutput ¶
type TableOutput struct {
// contains filtered or unexported fields
}
func (TableOutput) All ¶
func (to TableOutput) All()
func (TableOutput) Battery ¶
func (to TableOutput) Battery()
func (TableOutput) Current ¶
func (to TableOutput) Current()
func (TableOutput) Fans ¶
func (to TableOutput) Fans()
func (TableOutput) Power ¶
func (to TableOutput) Power()
func (TableOutput) Temperature ¶
func (to TableOutput) Temperature()
func (TableOutput) Voltage ¶
func (to TableOutput) Voltage()
Click to show internal directories.
Click to hide internal directories.