Add structs for listing files

This commit is contained in:
raul 2024-06-14 11:27:22 +02:00
parent 38db0c030d
commit 270d4c5da4
1 changed files with 30 additions and 3 deletions

View File

@ -11,13 +11,40 @@ type Client struct {
} }
type Instructions struct { type Instructions struct {
IsHeartbeat bool IsHeartbeat bool
IsCommand bool
IsCommand bool
IsKillswitch bool IsKillswitch bool
Message string
// IsDownload bool
// IsUpload bool
// FileName string
// FileContents []byte
IsListFiles bool
Path string
Message string
} }
type Response struct { type Response struct {
Successful bool Successful bool
Message string 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
} }