task

package
v0.3.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 BatchInfo added in v0.3.4

type BatchInfo struct {
	ID           string
	TotalCount   int
	SuccessCount int
	FailedApps   []FailedAppInfo
	Notify       bool
}

type FailedAppInfo added in v0.3.4

type FailedAppInfo struct {
	AppName string
	Account string
	Error   string
}

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) StartInstallApps added in v0.3.3

func (t *Task) StartInstallApps(apps []model.InstalledApp, notify bool)

func (*Task) Stop

func (t *Task) Stop()

type TaskItem added in v0.3.0

type TaskItem struct {
	App     model.InstalledApp
	Notify  bool
	BatchID string
}

Jump to

Keyboard shortcuts

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