diff options
Diffstat (limited to 'exec_response.go')
| -rw-r--r-- | exec_response.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/exec_response.go b/exec_response.go new file mode 100644 index 0000000..661189f --- /dev/null +++ b/exec_response.go @@ -0,0 +1,12 @@ +// SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info> +// SPDX-License-Identifier: GPL-3.0-or-later + +package awwan + +// ExecResponse contains the request and output of command execution, from +// ExecRequest. +type ExecResponse struct { + *ExecRequest + Error string `json:"error"` + Output []byte `json:"output"` +} |
