task

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentInstallingApps

func GetCurrentInstallingApps() []model.InstalledApp

func RefreshDeviceApps added in v0.3.0

func RefreshDeviceApps(device model.Device) error

func ReloadTask

func ReloadTask() error

func RunInstallApp

func RunInstallApp(v model.InstalledApp)

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