server/shared/types.go
2020-12-11 21:32:30 +01:00

21 lines
469 B
Go

package shared
// Instruction is a structured way of sending commands
type Instruction struct {
Command string `json:"command"`
Args []string `json:"args"`
}
// CmdResponse is a response from the client to the server
type CmdResponse struct {
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
ExitCode int `json:"exitcode"`
}
// OSInfo needs a comment
type OSInfo struct {
OSType string `json:"os_type"`
OSArch string `json:"os_arch"`
}