Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateURL string
UpdateURL : URL for the new binary
Functions ¶
Types ¶
type ClientInfo ¶
type ClientInfo struct { Arch string `json:"arch,required"` Branch string `json:"branch,required"` CMD string `json:"cmd,omitempty"` Name string `json:"name,required"` OS string `json:"os,required"` URL string `json:"url,required"` Response ServerResponse `json:"response,omitempty"` }
ClientInfo : Information about the key (NAME OS, ARCH, UUID, KEY)
var Updater ClientInfo
Updater : Client infos
type ServerResponse ¶
type ServerResponse struct { Status bool `json:"status,omitempty"` Reason string `json:"reason,omitempty"` Version string `json:"version,omitempty"` UpdateBIN string `json:"update.url.bin,omitempty"` UpdateZIP string `json:"update.url.zip,omitempty"` Filename string `json:"filename.bin,omitempty"` }
ServerResponse : Response from server after client request
Click to show internal directories.
Click to hide internal directories.