version

package
v0.3.3-alpha Latest Latest
Warning

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

Go to latest
Published: May 2, 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 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