api

package
v0.0.0-...-5e29a04 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPLogMiddleware

func IPLogMiddleware(h http.Handler) http.Handler

IPLogMiddleware logs all request in the DEBUG level

func Start

func Start(host string)

Types

type APIStatus

type APIStatus struct {
	Status            string `json:"status"`
	DevicesRegistered int    `json:"registered"`
	DevicesOnline     int    `json:"deviceOnline"`
}

APIStatus is for the status HTTP call

type PixelChannelUpdate

type PixelChannelUpdate struct {
	Parent int                  `json:"parent"` // Device ID or Universe ID depending on context
	Pixels map[int]pixels.Pixel `json:"pixels"` // Key is the pixel number
	RGBW   bool                 `json:"RGBW"`
}

PixelChannelUpdate is submitted to update a strip

Jump to

Keyboard shortcuts

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