server/types/types.go

21 lines
468 B
Go
Raw Normal View History

2020-12-11 20:23:16 +00:00
package types
// 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"`
}