Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { Time time.Time `json:"time"` Name string `json:"name"` Body []byte `json:"body"` Sign []byte `json:"sign"` Version StartBlock uint64 `json:"start_block"` IsCritical bool `json:"is_critical"` }
Build is storing build data with needed for update params
type Version ¶
type Version struct { Number string `json:"number"` OS string `json:"os"` Arch string `json:"arch"` }
func GetAvailableVersions ¶
func GetAvailableVersions() []Version
GetAvailableVersions is returning available versions
func GetLastVersion ¶
GetLastVersion returns the latest version for required os+arch from the version array
func NewVersion ¶
func VersionFilter ¶
VersionFilter is filtering and leaves only the necessary versions and sorting by asc
Click to show internal directories.
Click to hide internal directories.