Documentation
¶
Index ¶
- type Backend
- func (b *Backend) ActivateScene(ctx context.Context, sceneID string) error
- func (b *Backend) Close() error
- func (b *Backend) Init(ctx context.Context) error
- func (b *Backend) Name() string
- func (b *Backend) Refresh(ctx context.Context) (*backend.State, error)
- func (b *Backend) SetAllPower(ctx context.Context, on bool) error
- func (b *Backend) SetLightColor(ctx context.Context, lightID string, color models.Color) error
- func (b *Backend) SetLightPower(ctx context.Context, lightID string, on bool) error
- func (b *Backend) SupportsScenes() bool
- func (b *Backend) Type() backend.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements the LIFX HTTP API backend.
func (*Backend) ActivateScene ¶
func (*Backend) SetLightColor ¶
func (*Backend) SetLightPower ¶
func (*Backend) SupportsScenes ¶
Click to show internal directories.
Click to hide internal directories.