Documentation ¶
Index ¶
- Constants
- func RegisterEndpoints(e *echo.Group, service *Service)
- type Device
- type Hardware
- type Logic
- type Module
- type Reader
- type Service
- func (c *Service) Blink(mac string, times int) error
- func (c *Service) GetDevice(mac string) (*Device, error)
- func (c *Service) Keys() ([]string, error)
- func (c *Service) ListDevices() ([]Device, error)
- func (c *Service) Ping() error
- func (c *Service) Reset(mac string, delayMs int) error
- func (c *Service) SendDeltaDmx(mac string, data []byte) error
- func (c *Service) SendDmx(mac string, data []byte) error
- func (c *Service) SendFx(mac string, effect *core.Effect) error
- func (c *Service) SendRgb(mac string, data []byte) error
- func (c *Service) SetMode(mac string, mode *core.Mode) error
- type Writer
Constants ¶
View Source
const ( MacVarName = "mac_string" NameVarName = "NAME" IpVarName = "IP" HwTypeVarName = "HWTYPE" HwRevVarName = "HWREV" ExtModeVarName = "EXTMODE" ModeVarName = "MODE" VersionVarName = "VERSION" PixelLengthVar = "pixel_length" FxVar = "fx" FxSpeedVar = "fx_speed" FxXfadeVar = "fx_xfade" FxForegroundRedVar = "fx_fgnd_r" FxForegroundGreenVar = "fx_fgnd_g" FxForegroundBlueVar = "fx_fgnd_b" FxBackgroundRedVar = "fx_bgnd_r" FxBackgroundGreenVar = "fx_bgnd_g" FxBackgroundBlueVar = "fx_bgnd_b" )
Variables ¶
This section is empty.
Functions ¶
func RegisterEndpoints ¶
func RegisterEndpoints(e *echo.Group, service *Service)
Types ¶
type Device ¶
type Device struct { MAC string `json:"mac"` Name string `json:"name"` IP string `json:"ip"` Hardware Hardware `json:"hardware"` Mode int `json:"mode"` ExternalMode int `json:"external_mode"` LastBeat time.Time `json:"last_beat"` Version int `json:"version"` Config map[string]int `json:"config"` }
func ParseDevice ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ListDevices ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.