PlaySessionDTO
PlaySessionDTO identifies a running or completed game process for session views.
Kind
struct
Fields
| Go field | JSON field | Go type | TypeScript type | Optional | Nullable | Description |
|---|---|---|---|---|---|---|
ID | id | string | string | No | No | |
InstanceID | instanceId | string | string | No | No | InstanceID is the instance the session belongs to. |
AccountID | accountId | *string | string | null | Yes | Yes | AccountID is the account used for the session, when one was selected. |
VersionID | versionId | string | string | No | No | VersionID is the game version that ran during the session. |
StartedAt | startedAt | string | string | No | No | StartedAt and EndedAt bound the session lifetime. |
EndedAt | endedAt | *string | string | null | Yes | Yes | |
DurationSeconds | durationSeconds | int64 | number | No | No | DurationSeconds is the session length. |
ExitCode | exitCode | *int | number | null | Yes | Yes | ExitCode is the process exit code, when the session has ended. |
Crashed | crashed | bool | boolean | No | No | Crashed reports whether the process terminated unexpectedly. |
Recovered | recovered | bool | boolean | No | No | Recovered reports whether a last-known-good recovery was applied. |
Used by
- StatisticsDTO — field
recentSessions - LaunchController.LaunchInstance — return value
- LaunchController.LaunchServer — return value
Source
internal/transport/wails/dto.go:317