Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventData ¶
type EventData struct { Color *Color `json:"color"` Dimming *struct { Brightness float64 `json:"brightness"` } `json:"dimming"` Gradient *struct { Points []Point `json:"points"` PointsCapable float64 `json:"points_capable"` } `json:"gradient"` Id string `json:"id"` IdV1 string `json:"id_v1"` On *struct { On bool `json:"on"` } `json:"on"` Owner struct { Rid string `json:"rid"` Rtype string `json:"rtype"` } `json:"owner"` Type string `json:"type"` }
type Light ¶
type Light struct { Alert struct { ActionValues []string `json:"action_values"` } `json:"alert"` Color *struct { Gamut struct { Blue XY `json:"blue"` Green XY `json:"green"` Red XY `json:"red"` } `json:"gamut"` GamutType string `json:"gamut_type"` XY XY `json:"xy"` } `json:"color"` ColorTemperature *struct { Mirek interface{} `json:"mirek"` MirekSchema struct { MirekMaximum float64 `json:"mirek_maximum"` MirekMinimum float64 `json:"mirek_minimum"` } `json:"mirek_schema"` MirekValid bool `json:"mirek_valid"` } `json:"color_temperature"` ColorTemperatureDelta struct { } `json:"color_temperature_delta"` Dimming *struct { Brightness float64 `json:"brightness"` MinDimLevel float64 `json:"min_dim_level"` } `json:"dimming"` DimmingDelta struct { } `json:"dimming_delta"` Dynamics struct { Speed float64 `json:"speed"` SpeedValid bool `json:"speed_valid"` Status string `json:"status"` StatusValues []string `json:"status_values"` } `json:"dynamics"` Effects struct { EffectValues []string `json:"effect_values"` Status string `json:"status"` StatusValues []string `json:"status_values"` } `json:"effects"` Gradient *struct { Mode string `json:"mode"` ModeValues []string `json:"mode_values"` PixelCount int `json:"pixel_count"` Points []Point `json:"points"` PointsCapable int `json:"points_capable"` } `json:"gradient"` Id string `json:"id"` IdV1 string `json:"id_v1"` Metadata struct { Archetype string `json:"archetype"` Name string `json:"name"` } `json:"metadata"` Mode string `json:"mode"` On struct { On bool `json:"on"` } `json:"on"` Owner struct { Rid string `json:"rid"` Rtype string `json:"rtype"` } `json:"owner"` Powerup struct { Color struct { Mode string `json:"mode"` } `json:"color"` Configured bool `json:"configured"` Dimming struct { Mode string `json:"mode"` } `json:"dimming"` On struct { Mode string `json:"mode"` On struct { On bool `json:"on"` } `json:"on"` } `json:"on"` Preset string `json:"preset"` } `json:"powerup"` Signaling struct { SignalValues []string `json:"signal_values"` } `json:"signaling"` TimedEffects struct { EffectValues []string `json:"effect_values"` Status string `json:"status"` StatusValues []string `json:"status_values"` } `json:"timed_effects"` Type string `json:"type"` }
type LightPutColor ¶
type LightPutColor struct {
XY XY `json:"xy"`
}
func NewLightPutColor ¶
func NewLightPutColor(x, y float64) *LightPutColor
type LightPutDimming ¶
type LightPutDimming struct {
Brightness float64 `json:"brightness"`
}
type LightPutDynamics ¶
type LightPutDynamics struct {
Duration int64 `json:"duration"`
}
type LightPutGradient ¶
type LightPutGradient struct {
Points []Point `json:"points"`
}
type LightPutOn ¶
type LightPutOn struct {
On bool `json:"on"`
}
type LightPutRequest ¶
type LightPutRequest struct { On *LightPutOn `json:"on,omitempty"` Dimming *LightPutDimming `json:"dimming,omitempty"` Color *LightPutColor `json:"color,omitempty"` Gradient *LightPutGradient `json:"gradient,omitempty"` Dynamics *LightPutDynamics `json:"dynamics,omitempty"` }
type LightResponse ¶
type PutResponse ¶
Click to show internal directories.
Click to hide internal directories.