Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckUpdateRequest ¶
type CheckUpdateRequest struct { Product string `json:"product"` Current string `json:"current"` Arch string `json:"arch"` OS string `json:"os"` CacheFile string `json:"-"` CacheDuration time.Duration `json:"-"` CheckPoint string `json:"-"` }
CheckUpdateRequest is check update request
func (*CheckUpdateRequest) Run ¶
func (req *CheckUpdateRequest) Run(ctx context.Context) (rsp *CheckUpdateResponse, err error)
Run do check update
type CheckUpdateResponse ¶
type CheckUpdateResponse struct { Product string `json:"product"` Current string `json:"current"` Latest string `json:"latest"` Outdated bool `json:"outdated"` Emergency bool `json:"emergency"` DownloadURL string `json:"download_url"` ProductURL string `json:"product_url"` }
CheckUpdateResponse is check update response
Click to show internal directories.
Click to hide internal directories.