spectrum

package
v0.0.0-...-c6a5ec6 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAnimation

func DeleteAnimation(w http.ResponseWriter, r *http.Request)

func GetAnimation

func GetAnimation(w http.ResponseWriter, r *http.Request)

func GetBrightness

func GetBrightness(w http.ResponseWriter, r *http.Request)

func GetDiscovery

func GetDiscovery(w http.ResponseWriter, r *http.Request)

func GetSettings

func GetSettings(w http.ResponseWriter, r *http.Request)

func GetWifi

func GetWifi(w http.ResponseWriter, r *http.Request)

func Init

func Init(p_options *led.LedstripOptions)

func PlayClear

func PlayClear()

func PlayDefaultAnimations

func PlayDefaultAnimations()

func PostAnimation

func PostAnimation(w http.ResponseWriter, r *http.Request)

func PostBrightness

func PostBrightness(w http.ResponseWriter, r *http.Request)

func PostSettings

func PostSettings(w http.ResponseWriter, r *http.Request)

func PostWifi

func PostWifi(w http.ResponseWriter, r *http.Request)

func Run

func Run(plog logr.Logger, args []string)

func SetAnimation

func SetAnimation(anim AnimUnitDO)

func StopAnimation

func StopAnimation(anim AnimStopDO)

Types

type AnimStopDO

type AnimStopDO struct {
	Index       int  `json:"index"`
	ShouldClear bool `json:"shouldClear"`
}

type AnimUnitDO

type AnimUnitDO struct {
	Index     int               `json:"index"`
	Segment   led.StripSegment  `json:"segment"`
	Animation string            `json:"animation"`
	Options   map[string]string `json:"options"`
}

type BrightnessDO

type BrightnessDO struct {
	Brightness int `json:"brightness"`
}

type DiscoveryDO

type DiscoveryDO struct {
	Animation string              `json:"animation"`
	Options   map[string]OptionDO `json:"options"`
}

type OptionDO

type OptionDO struct {
	Type    string `json:"type"`
	Default string `json:"default"`
	Min     string `json:"min,omitempty"`
	Max     string `json:"max,omitempty"`
}

Jump to

Keyboard shortcuts

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