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

@ -12,12 +12,39 @@ type Client struct {
type Instructions struct {
IsHeartbeat bool
IsCommand bool
IsKillswitch bool
// 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
}