Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
Type() Type
Name() string
SupportsScenes() bool
Init(ctx context.Context) error
Close() error
Refresh(ctx context.Context) (*State, error)
SetLightPower(ctx context.Context, lightID string, on bool) error
SetLightColor(ctx context.Context, lightID string, color models.Color) error
ActivateScene(ctx context.Context, sceneID string) error
}
Backend defines the operations required by the TUI.
Click to show internal directories.
Click to hide internal directories.