19 lines
462 B
Go
19 lines
462 B
Go
|
|
package models
|
||
|
|
|
||
|
|
type ModuleStatus string
|
||
|
|
|
||
|
|
const (
|
||
|
|
ModuleStatusRunning ModuleStatus = "running"
|
||
|
|
ModuleStatusStopped ModuleStatus = "stopped"
|
||
|
|
ModuleStatusError ModuleStatus = "error"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Module struct {
|
||
|
|
ID string `json:"id"`
|
||
|
|
Name string `json:"name"`
|
||
|
|
Enabled bool `json:"enabled"`
|
||
|
|
Description string `json:"description"`
|
||
|
|
Icon string `json:"icon"`
|
||
|
|
Status ModuleStatus `json:"status"`
|
||
|
|
}
|