Add structs.go file

This commit is contained in:
raul 2024-06-07 11:29:09 +02:00
parent e7e24b2310
commit 841ad1c3ac
1 changed files with 39 additions and 0 deletions

39
cmd/structs.go Normal file
View File

@ -0,0 +1,39 @@
package cmd
import (
"net"
"time"
)
type ClientJSON struct {
Date time.Time
List []ClientBasicInfo
}
type Client struct {
ClientBasicInfo
Conn net.Conn
IsOnline bool
ClientID int
}
type ClientBasicInfo struct {
Username string
UID string
GID string
OperatingSystem string
Hostname string
PublicIP string
}
type Instructions struct {
IsHeartbeat bool
IsCommand bool
IsKillswitch bool
Message string
}
type Response struct {
Successful bool
Message string
}