Compare commits
No commits in common. "e9a4d586b44248cb91f958b3417e3df7567ac7c3" and "becc1791848b18f743dc3a48ace3c78dbf2b8210" have entirely different histories.
e9a4d586b4
...
becc179184
10
lights.go
10
lights.go
@ -7,12 +7,6 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
const (
|
||||
OK Status = "ok"
|
||||
TimedOut Status = "timed_out"
|
||||
Offline Status = "offline"
|
||||
)
|
||||
|
||||
type (
|
||||
Status string
|
||||
|
||||
@ -40,10 +34,6 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
func (s Status) Success() bool {
|
||||
return s == OK
|
||||
}
|
||||
|
||||
func (c *Client) SetState(selector string, state State) ([]Result, error) {
|
||||
j, err := json.Marshal(state)
|
||||
if err != nil {
|
||||
|
@ -22,6 +22,16 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
const (
|
||||
OK Status = "ok"
|
||||
TimedOut Status = "timed_out"
|
||||
Offline Status = "offline"
|
||||
)
|
||||
|
||||
func (s Status) Success() bool {
|
||||
return s == OK
|
||||
}
|
||||
|
||||
func NewRGBColor(r, g, b uint8) (*RGBColor, error) {
|
||||
return &RGBColor{R: r, G: g, B: b}, nil
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user