version

package
v0.2.4-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL