task

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAccountInvalid = errors.New("account invalid")

Functions

func GetCurrentInstallingApps

func GetCurrentInstallingApps() []model.InstalledApp

func RefreshApp added in v0.3.1

func RefreshApp(v model.InstalledApp)

func RefreshDeviceApps added in v0.3.0

func RefreshDeviceApps(device model.Device) error

func ReloadTask

func ReloadTask() error

func ScheduleRefreshApps

func ScheduleRefreshApps() error

Types

type Task

type Task struct {
	InstallingApps  sync.Map
	InstallAppQueue chan TaskItem

	InvalidAccounts map[string]bool
	// RefreshingDevices prevents concurrent refresh operations for the same device UDID
	RefreshingDevices sync.Map
	// contains filtered or unexported fields
}

func (*Task) Run

func (t *Task) Run()

func (*Task) RunSchedule

func (t *Task) RunSchedule() error

func (*Task) Start

func (t *Task) Start()

func (*Task) StartInstallApp

func (t *Task) StartInstallApp(v model.InstalledApp)

func (*Task) Stop

func (t *Task) Stop()

type TaskItem added in v0.3.0

type TaskItem struct {
	App    model.InstalledApp
	Notify bool
}

Jump to

Keyboard shortcuts

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