types

package
Version: v0.0.0-...-702f827 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interval int       `yaml:"sync_interval"`
	Mappings []mapping `yaml:"mappings"`
}

type GPIOStates

type GPIOStates struct {
	Status string `json:"status"`
	Data   []struct {
		Value   float64 `json:"value"`
		Circuit string  `json:"circuit"`
		Dev     string  `json:"dev"`
	} `json:"data"`
}

type Message

type Message struct {
	Command string      `json:"cmd,omitempty"`
	Circuit string      `json:"circuit"`
	Device  string      `json:"dev"`
	Value   json.Number `json:"value"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL