This commit is contained in:
2023-06-11 12:40:53 -04:00
parent f9b6e2136b
commit 7fc4336397
14 changed files with 393 additions and 201 deletions

View File

@@ -13,4 +13,5 @@ var (
TokenURL = os.Getenv("TokenURL")
Host = os.Getenv("host")
Version = os.Getenv("version")
Groupsenv = os.Getenv("groups")
)

View File

@@ -1,8 +0,0 @@
package model
import "errors"
var (
// ErrNoRow example
ErrNoRow = errors.New("no rows in result set")
)

5
model/messages.go Normal file
View File

@@ -0,0 +1,5 @@
package model
type Message struct {
Message string `json:"message" example:"message"`
}

23
model/unraid.go Normal file
View File

@@ -0,0 +1,23 @@
package model
type PowerSupply struct {
TwelveVoltLoad int `json:"12v_load"`
TwelveVoltWatts int `json:"12v_watts"`
ThreeVoltLoad int `json:"3v_load"`
ThreeVoltWatts int `json:"3v_watts"`
FiveVoltLoad int `json:"5v_load"`
FiveVoltWatts int `json:"5v_watts"`
Capacity string `json:"capacity"`
Efficiency int `json:"efficiency"`
FanRPM int `json:"fan_rpm"`
Load int `json:"load"`
PoweredOn string `json:"poweredon"`
PoweredOnRaw string `json:"poweredon_raw"`
Product string `json:"product"`
Temp1 int `json:"temp1"`
Temp2 int `json:"temp2"`
Uptime string `json:"uptime"`
UptimeRaw string `json:"uptime_raw"`
Vendor string `json:"vendor"`
Watts int `json:"watts"`
}