Initial commit with project setup and basic structure established.

This commit is contained in:
2026-08-18 16:40:50 +03:00
parent 2683425562
commit f0515d7342
12 changed files with 884 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
package models
import "time"
type APIError struct {
Error string `json:"error"`
}
type FileItem struct {
Name string `json:"name"`
Path string `json:"path"`
Type string `json:"type"`
Size int64 `json:"size"`
Modified time.Time `json:"modified_time"`
}
type ScreenshotImage struct {
Monitor int `json:"monitor"`
ContentType string `json:"content_type"`
DataBase64 string `json:"data_base64"`
}
type ScreenshotResponse struct {
Images []ScreenshotImage `json:"images"`
}
type ExecRequest struct {
Command string `json:"command"`
TimeoutSec int `json:"timeout_sec"`
}
type ExecResponse struct {
ExitCode int `json:"exit_code"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
type CapturedImage struct {
ContentType string
Data []byte
}