Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListLightsHandler ¶
func NewListLightsHandler(bridgesProvider pkg.BridgesProvider) libhttp.WithError
NewListLightsHandler returns a JSON handler that lists all lights on the first bridge known to the BridgesProvider.
func NewStatusHandler ¶
func NewStatusHandler(bridgesProvider pkg.BridgesProvider) libhttp.WithError
NewStatusHandler returns a JSON handler that splits the lights on the first bridge into on/off name lists, sorted for stable output.
Types ¶
type StatusResponse ¶
StatusResponse is a scannable summary of which lights are currently on and off across the first bridge known to the BridgesProvider.
Click to show internal directories.
Click to hide internal directories.