upgrade

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(rq *RequesParam) error

func Downloader

func Downloader(rq *RequesParam) (io.ReadCloser, error)

Types

type RequesParam

type RequesParam struct {
	UpdateUrl string `note:"检测地址"`
	Version   string `note:"当前版本"`
}

type UpdateInfo

type UpdateInfo struct {
	BinaryUrl string `note:"下载地址"`
	Message   string `note:"错误信息"`
	Version   string `note:"最新版本"`
}

func CheckVersion

func CheckVersion(rq *RequesParam) (*UpdateInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL