Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(protected *gin.RouterGroup, deps *ServerDependencies)
Types ¶
type ServerDependencies ¶
type ServerDependencies = core.ServerDependencies
type VersionCheckRequest ¶
type VersionCheckRequest struct {
// Force refresh the cache
ForceRefresh bool `json:"force_refresh,omitempty"`
}
VersionCheckRequest represents the request body for force version check. Note: This struct is currently unused - the POST /api/v1/version/check endpoint accepts JSON but doesn't use any fields. Kept for potential future use.
type VersionStatusResponse ¶
type VersionStatusResponse struct {
Current string `json:"current"` // Current installed version
Commit string `json:"commit"` // Current commit hash
BuildDate string `json:"build_date"` // Build timestamp
Latest string `json:"latest"` // Latest available version
UpdateAvailable bool `json:"update_available"` // Whether an update is available
Prerelease bool `json:"prerelease"` // Whether latest is a prerelease
CheckedAt string `json:"checked_at"` // When the check was performed
Source string `json:"source"` // "cached" or "fresh"
Error string `json:"error,omitempty"` // Error message if any
}
VersionStatusResponse represents the response for version status endpoints.
Click to show internal directories.
Click to hide internal directories.