add healthcheck route
This commit is contained in:
@@ -3,13 +3,13 @@ package types
|
||||
import "gitea.local.lab/Lbenedar/foundry_helper_service/internal/foundry/models/json"
|
||||
|
||||
type FoundryStatus struct {
|
||||
IsActive bool
|
||||
Version string
|
||||
World string
|
||||
System string
|
||||
SystemVersion string
|
||||
Users int
|
||||
Uptime int64
|
||||
IsActive bool `json:"on_world"`
|
||||
Version string `json:"version"`
|
||||
World string `json:"world,omitempty"`
|
||||
System string `json:"system,omitempty"`
|
||||
SystemVersion string `json:"-"`
|
||||
Users int `json:"-"`
|
||||
Uptime int64 `json:"-"`
|
||||
}
|
||||
|
||||
func NewFoundryStatus(status *json.Status) *FoundryStatus {
|
||||
|
||||
Reference in New Issue
Block a user