mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-09-18 20:14:43 -04:00
Add "uptime" debug command
This commit is contained in:
parent
3625225014
commit
52ac599008
10 changed files with 379 additions and 85 deletions
|
@ -215,7 +215,9 @@ sealed class VeilidUpdate with _$VeilidUpdate {
|
|||
const factory VeilidUpdate.attachment(
|
||||
{required AttachmentState state,
|
||||
required bool publicInternetReady,
|
||||
required bool localNetworkReady}) = VeilidUpdateAttachment;
|
||||
required bool localNetworkReady,
|
||||
required TimestampDuration uptime,
|
||||
required TimestampDuration? attachedUptime}) = VeilidUpdateAttachment;
|
||||
const factory VeilidUpdate.network(
|
||||
{required bool started,
|
||||
required BigInt bpsDown,
|
||||
|
@ -247,7 +249,9 @@ class VeilidStateAttachment with _$VeilidStateAttachment {
|
|||
const factory VeilidStateAttachment(
|
||||
{required AttachmentState state,
|
||||
required bool publicInternetReady,
|
||||
required bool localNetworkReady}) = _VeilidStateAttachment;
|
||||
required bool localNetworkReady,
|
||||
required TimestampDuration uptime,
|
||||
required TimestampDuration? attachedUptime}) = _VeilidStateAttachment;
|
||||
|
||||
factory VeilidStateAttachment.fromJson(dynamic json) =>
|
||||
_$VeilidStateAttachmentFromJson(json as Map<String, dynamic>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue