updateTracker

package
v0.0.0-...-a94a34d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: OSL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultArch = arm64
)

Variables

View Source
var (
	MissingArchSplits = []string{"config." + arm32, "config." + x64, "config." + x86}
	MissingDpiSplits  = []string{"config.hdpi"}
)

Functions

func Check

func Check()

func GetDownloadURL

func GetDownloadURL(version int, split string, bypass bool) (url string, err error)

func StartUpdateTracker

func StartUpdateTracker(cfg *common.Config)

Types

type Cache

type Cache struct {
	Data map[string]*CacheData
	// contains filtered or unexported fields
}

func (*Cache) Persist

func (c *Cache) Persist() (err error)

type CacheData

type CacheData struct {
	Version int
}

type DlCache

type DlCache struct {
	URL    string
	Splits map[string]string
	GP     bool
	Expiry int64
	Error  error
}

func GetDownloadData

func GetDownloadData(version int, arch string, bypass bool) (dl *DlCache, err error)

type GooglePlayChecker

type GooglePlayChecker struct {
	AccountConfig common.GooglePlayChannelConfig
	Channel       string
	// contains filtered or unexported fields
}

func (*GooglePlayChecker) Check

func (c *GooglePlayChecker) Check() (v int, app *gplayapi.App, err error)

func (*GooglePlayChecker) GetDownloadData

func (c *GooglePlayChecker) GetDownloadData(version int, arch string) (data *gpproto.AndroidAppDeliveryData, err error)

Jump to

Keyboard shortcuts

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