package
1.2.0
Repository: https://github.com/martinohmann/rfoutlet.git
Documentation: pkg.go.dev

# Functions

NewRegistry creates a new *Registry.
NewStateFile creates a new *StateFile with filename.
NewSwitch creates a new *Switch.

# Constants

StateOff describes an outlet that is switched off.
StateOn describes an outlet that is switched on.

# Structs

FakeSwitch can be used in tests,.
Group is a group of outlets that can be switched as one.
Outlet is an rf controlled outlet that can be switched on or off.
Registry holds references to all outlets and outlet groups.
StateFile holds the state and schedule of all configured outlets.
Switch switches outlets by sending out codes using an gpio transmitter.

# Interfaces

Switcher defines the interface for an outlet switcher.

# Type aliases

State describes the state of an outlet (on or off).