From 50ae8f7138806f89c0da5350e969084584a4473d Mon Sep 17 00:00:00 2001 From: raul Date: Fri, 14 Jun 2024 11:26:39 +0200 Subject: [PATCH] Add structs for listing files --- cmd/structs.go | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/cmd/structs.go b/cmd/structs.go index cf9e783..be11f92 100644 --- a/cmd/structs.go +++ b/cmd/structs.go @@ -28,15 +28,43 @@ type ClientBasicInfo 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 } type Bulk struct {