update
This commit is contained in:
@@ -13,4 +13,5 @@ var (
|
||||
TokenURL = os.Getenv("TokenURL")
|
||||
Host = os.Getenv("host")
|
||||
Version = os.Getenv("version")
|
||||
Groupsenv = os.Getenv("groups")
|
||||
)
|
||||
|
||||
@@ -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
5
model/messages.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package model
|
||||
|
||||
type Message struct {
|
||||
Message string `json:"message" example:"message"`
|
||||
}
|
||||
23
model/unraid.go
Normal file
23
model/unraid.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user