scheduler

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Host  string
	State bool
}

Action represents a state change for a host

type Actions

type Actions []Action

func (Actions) LogValue

func (a Actions) LogValue() slog.Value

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

Scheduler determines the LED state for each active host(s)

func New

New creates a Scheduler based on the provided pattern name

func (*Scheduler) Next

func (s *Scheduler) Next() Actions

Next determines the required actions for the next state

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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