status updates
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package model
|
||||
|
||||
type ServiceStatus string
|
||||
|
||||
const (
|
||||
StatusRunning ServiceStatus = "SERVICE_RUNNING\r\n"
|
||||
StatusStopped ServiceStatus = "SERVICE_STOPPED\r\n"
|
||||
StatusRestarting ServiceStatus = "SERVICE_RESTARTING\r\n"
|
||||
)
|
||||
|
||||
type ApiModel struct {
|
||||
Api string `json:"api"`
|
||||
}
|
||||
|
||||
// ServiceStatus represents a Windows service state
|
||||
type ServiceStatus struct {
|
||||
Name string `json:"name"`
|
||||
Status string `json:"status"` // "running", "stopped", "pending"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user