mirror of
https://github.com/kaaninchen/Laterna.git
synced 2026-09-17 19:12:48 +00:00
database setup and getcurrent
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user