mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
+ Add persistent custom update server configuration, authenticated URL support, manifest validation, and the settings UI. + Keep application updates rebootless by coordinating video shutdown, migration-time service startup, and online/offline service restarts. + Localize the custom update server workflow across all supported languages.
25 lines
481 B
Go
25 lines
481 B
Go
package proto
|
|
|
|
type GetVersionRsp struct {
|
|
Current string `json:"current"`
|
|
Latest string `json:"latest"`
|
|
}
|
|
|
|
type GetPreviewRsp struct {
|
|
Enabled bool `json:"enabled"`
|
|
}
|
|
|
|
type SetPreviewReq struct {
|
|
Enable bool `validate:"omitempty"`
|
|
}
|
|
|
|
type GetUpdateServerRsp struct {
|
|
Enabled bool `json:"enabled"`
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
type SetUpdateServerReq struct {
|
|
Enabled *bool `json:"enabled" form:"enabled" validate:"required"`
|
|
URL string `json:"url" form:"url"`
|
|
}
|