From 270d4c5da4e089704f2a1d2e6829a9efb0ada1e7 Mon Sep 17 00:00:00 2001 From: raul Date: Fri, 14 Jun 2024 11:27:22 +0200 Subject: [PATCH] Add structs for listing files --- structs.go | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/structs.go b/structs.go index f7dcbee..07c5282 100644 --- a/structs.go +++ b/structs.go @@ -11,13 +11,40 @@ type Client struct { } type Instructions struct { - IsHeartbeat bool - IsCommand bool + IsHeartbeat bool + + IsCommand bool + IsKillswitch bool - Message string + + // IsDownload bool + // IsUpload bool + // FileName string + // FileContents []byte + + IsListFiles bool + Path string + + Message string } type Response struct { Successful bool Message string + + // IsUpload bool + // FileName string + // FileContents []byte + + IsListFiles bool + FileList +} +type FileList struct { + File []Item +} + +type Item struct { + Name string + FullPath string + IsFolder bool }