Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BridgesProvider ¶
type BridgesProvider interface {
// GetBridges returns a bridge if found
GetBridges(ctx context.Context) ([]*huego.Bridge, error)
}
func NewBridgeProviderCache ¶
func NewBridgeProviderCache(providesBridge BridgesProvider) BridgesProvider
func NewBridgeProviderFallback ¶
func NewBridgeProviderFallback( providesBridge BridgesProvider, fallback ...*huego.Bridge, ) BridgesProvider
func NewBridgesProvider ¶
func NewBridgesProvider(id string, token Token) BridgesProvider
type BridgesProviderFunc ¶
func (BridgesProviderFunc) GetBridges ¶
type SunriseSunsetProvider ¶ added in v0.4.0
type SunriseSunsetProvider interface {
GetSunriseSunset(ctx context.Context, now time.Time) (time.Time, time.Time, error)
}
SunriseSunsetProvider computes the apparent sunrise and sunset times for the given instant at the controller's fixed location coordinates.
func NewSunriseSunsetProvider ¶ added in v0.4.0
func NewSunriseSunsetProvider() SunriseSunsetProvider
NewSunriseSunsetProvider returns the real sunrise/sunset capability for the controller's fixed location coordinates.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.