lan

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 LAN backend.

func New

func New(opts Options) *Backend

New creates a LAN backend.

func (*Backend) ActivateScene

func (b *Backend) ActivateScene(ctx context.Context, sceneID string) error

func (*Backend) Close

func (b *Backend) Close() error

func (*Backend) Init

func (b *Backend) Init(ctx context.Context) error

func (*Backend) Name

func (b *Backend) Name() string

func (*Backend) Refresh

func (b *Backend) Refresh(ctx context.Context) (*backend.State, error)

func (*Backend) SetLightColor

func (b *Backend) SetLightColor(ctx context.Context, lightID string, color models.Color) error

func (*Backend) SetLightPower

func (b *Backend) SetLightPower(ctx context.Context, lightID string, on bool) error

func (*Backend) SupportsScenes

func (b *Backend) SupportsScenes() bool

func (*Backend) Type

func (b *Backend) Type() backend.Type

type Options

type Options struct {
	Debug       bool
	ListenIP    string
	BroadcastIP string
}

Options controls LAN backend behavior.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL