Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "unknown" BuildDate = "unknown" )
Version information (set via ldflags)
Functions ¶
This section is empty.
Types ¶
type SystemInfoResponse ¶ added in v1.3.0
type SystemInfoResponse struct {
Version string `json:"version"`
Commit string `json:"commit"`
BuildDate string `json:"build_date"`
GoVersion string `json:"go_version"`
OS string `json:"os"`
Arch string `json:"arch"`
}
SystemInfoResponse represents system information
type UpdateCheckResponse ¶ added in v1.3.0
type UpdateCheckResponse struct {
HasUpdate bool `json:"has_update"`
CurrentVersion string `json:"current_version"`
LatestVersion string `json:"latest_version,omitempty"`
ReleaseNotes string `json:"release_notes,omitempty"`
ReleaseURL string `json:"release_url,omitempty"`
PublishedAt string `json:"published_at,omitempty"`
}
UpdateCheckResponse represents the update check result
Click to show internal directories.
Click to hide internal directories.