Documentation ¶
Index ¶
- func Setup() error
- func Slaves() ([]string, error)
- type Probe
- type ProbeGroup
- func (pg *ProbeGroup) AssignAlias(alias, id string) error
- func (pg *ProbeGroup) Close() error
- func (pg *ProbeGroup) Read() (map[string]Temperature, error)
- func (pg *ProbeGroup) ReadAlias() (map[string]Temperature, error)
- func (pg *ProbeGroup) ReadSingle(id string) (Temperature, error)
- func (pg *ProbeGroup) ReadSingleAlias(alias string) (Temperature, error)
- func (pg *ProbeGroup) Update() error
- type Temperature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Probe ¶
type Probe struct {
// contains filtered or unexported fields
}
func (*Probe) Temperature ¶
func (p *Probe) Temperature() (Temperature, error)
type ProbeGroup ¶
type ProbeGroup struct {
// contains filtered or unexported fields
}
func New ¶
func New() (*ProbeGroup, error)
func (*ProbeGroup) AssignAlias ¶
func (pg *ProbeGroup) AssignAlias(alias, id string) error
func (*ProbeGroup) Close ¶
func (pg *ProbeGroup) Close() error
func (*ProbeGroup) Read ¶
func (pg *ProbeGroup) Read() (map[string]Temperature, error)
func (*ProbeGroup) ReadAlias ¶
func (pg *ProbeGroup) ReadAlias() (map[string]Temperature, error)
func (*ProbeGroup) ReadSingle ¶
func (pg *ProbeGroup) ReadSingle(id string) (Temperature, error)
func (*ProbeGroup) ReadSingleAlias ¶
func (pg *ProbeGroup) ReadSingleAlias(alias string) (Temperature, error)
func (*ProbeGroup) Update ¶
func (pg *ProbeGroup) Update() error
type Temperature ¶
type Temperature float32
func (Temperature) Celsius ¶
func (t Temperature) Celsius() float32
func (Temperature) Centigrade ¶
func (t Temperature) Centigrade() float32
func (Temperature) Fahrenheit ¶
func (t Temperature) Fahrenheit() float32
func (Temperature) Kelvin ¶
func (t Temperature) Kelvin() float32
func (Temperature) String ¶
func (t Temperature) String() string
Click to show internal directories.
Click to hide internal directories.