Skip to content

OperationDTO

OperationDTO reports progress and outcome for a background launcher task.

Kind

struct

Fields

Go fieldJSON fieldGo typeTypeScript typeOptionalNullableDescription
IDidstringstringNoNo
TypetypestringstringNoNoType identifies the operation kind, such as a version install or snapshot.
ResourceIDresourceId*stringstring | nullYesYesResourceID names the instance or game version the operation targets.
TitletitlestringstringNoNoTitle is the human-readable operation title, used as the i18n fallback.
TitleKeytitleKeystringstringYesNoTitleKey is the i18n key used to localize the operation title.
TitleParamstitleParamsmap[string]stringRecord<string, string>YesNoTitleParams are the interpolation values for the localized title.
StatusstatusstringstringNoNoStatus is the operation lifecycle state: queued, running, completed, failed, or cancelled.
Progressprogressfloat64numberNoNoProgress is the completion ratio normalized from 0 to 1.
CurrentBytescurrentBytesint64numberNoNoCurrentBytes is the transferred byte count, and TotalBytes the expected total.
TotalBytestotalBytesint64numberNoNo
BytesPerSecondbytesPerSecondint64numberNoNoBytesPerSecond is the current transfer rate.
ErrorCodeerrorCode*stringstring | nullYesYesErrorCode is a stable error identifier set when the operation fails.
ErrorMessageerrorMessage*stringstring | nullYesYesErrorMessage is the human-readable failure description set when the operation fails.
CreatedAtcreatedAtstringstringNoNoCreatedAt, StartedAt, and FinishedAt are the operation lifecycle timestamps.
StartedAtstartedAt*stringstring | nullYesYes
FinishedAtfinishedAt*stringstring | nullYesYes

Used by

Source

internal/transport/wails/dto.go:257