mfi

package module
v0.0.0-...-a1d7625 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: MIT Imports: 8 Imported by: 0

README

mfi

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCookie

func GenerateCookie() string

func TestFindDevices

func TestFindDevices()

Types

type MFIClient

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

func MakeMFIClient

func MakeMFIClient(hostname, username, password string) (*MFIClient, error)

func (*MFIClient) Auth

func (client *MFIClient) Auth(username, password string) error

func (*MFIClient) SetOutputEnabled

func (client *MFIClient) SetOutputEnabled(number int, enabled bool) error

type SensorData

type SensorData struct {
	Port   int `json:"port"`
	Output int `json:"output"`
	// Power
	// Enabled
	// Current
	Voltage float64 `json:"voltage"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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