Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KelvinToMired ¶
func MiredToKelvin ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController() *Controller
func (*Controller) GetLight ¶
func (c *Controller) GetLight(ip string) (*LightStatus, error)
func (*Controller) UpdateLight ¶
func (c *Controller) UpdateLight(ip string, settings LightDetail) (*LightStatus, error)
type LightConfig ¶
type LightConfig struct {
Light `mapstructure:",squash"`
}
type LightDetail ¶
type LightStatus ¶
type LightStatus struct {
Lights []LightDetail `json:"lights,omitempty"`
NumberOfLights int `json:"numberOfLights,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.