providers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Providers map[string]Provider = make(map[string]Provider)

Functions

func GetLights

func GetLights()

func GetProviderLights

func GetProviderLights(id int) error

func Off

func Off(id int) error

func On

func On(id int) error

Types

type Provider

type Provider interface {
	GetLights() error
	GetLight(id string) error
	On(id string) error
	Off(id string) error
}

func NewProvider

func NewProvider(conf config.ProviderConfig) (Provider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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