mirror of
https://github.com/kaaninchen/Laterna.git
synced 2026-09-17 19:12:48 +00:00
29 lines
629 B
Go
29 lines
629 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type HTTPConfig struct {
|
|
AdminToken string `json:"adminToken"`
|
|
Port int `json:"port"`
|
|
}
|
|
|
|
type Config struct {
|
|
HTTP HTTPConfig `json:"http"`
|
|
FileLogging bool `json:"fileLogging"`
|
|
VerboseLogging bool `json:"verboseLogging"`
|
|
}
|
|
|
|
type HTTPError struct {
|
|
Timestamp string `json:"timestamp"`
|
|
Status int `json:"status"`
|
|
Error string `json:"error"`
|
|
Message string `json:"message"`
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
type LampState struct {
|
|
ID int `json:"id"`
|
|
Color string `json:"color"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|