Interface ExtensionTask

Hierarchy

Properties

createdAt: string

Task created time, ISO 8601 format

Example

"2023-03-04T19:11:01.8468886+08:00"
id: string

Task id

meta: {
    opt: Options;
    req: Request;
    res: Resource;
}

Task metadata

Type declaration

name: string

Task display name

progress: TaskProgress

Task progress

protocol: Protocol

Protocol type

size: number

Task total size(byte)

status: TaskStatus

Task status

Example

"ready"

Example

"running"
updatedAt: string

Task updated time, ISO 8601 format

Example

"2023-03-04T19:11:01.8468886+08:00"
uploading: boolean

Task is uploading

Methods

  • Continue the task

    Returns void

  • Pause the task

    Returns void

Generated using TypeDoc