Files
go-worm/lib/models/models.go
T

42 lines
829 B
Go

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
}