Documentation ¶
Index ¶
Constants ¶
View Source
const ( INITIATIVE_NEVER Initiative = "never" INITIATIVE_AUTO = "auto" INITIATIVE_MANUAL = "manual" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { // protocol version Version int `json:"version"` // version of the application updating itself AppVersion string `json:"app_version"` // operating system of target platform OS string `json:"os"` // hardware architecture of target platform Arch string `json:"arch"` // application-level user identifier //UserId string `json:"user_id"` // checksum of the binary to replace (used for returning diff patches) Checksum string `json:"checksum"` // release channel (empty string means 'stable') //Channel string `json:"-"` // tags for custom update channels Tags map[string]string `json:"tags"` }
Params represent parameters sent by the go-update client.
type PatchType ¶
type PatchType string
PatchType represents the type of a binary patch, if any. Only bsdiff is supported
const ( PATCHTYPE_BSDIFF PatchType = "bsdiff" PATCHTYPE_NONE = "" )
type Result ¶
type Result struct { // should the update be applied automatically/manually Initiative Initiative `json:"initiative"` // url where to download the updated application URL string `json:"url"` // a URL to a patch to apply PatchURL string `json:"patch_url"` // the patch format (only bsdiff supported at the moment) PatchType PatchType `json:"patch_type"` // version of the new application Version string `json:"version"` // expected checksum of the new application Checksum string `json:"checksum"` // signature for verifying update authenticity Signature string `json:"signature"` }
Result represents the answer to be sent to the client.
Click to show internal directories.
Click to hide internal directories.