diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-16 23:00:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-16 23:00:59 +0700 |
| commit | 06093ed39d7f1e4a7b0e49f9963d2ad2d108d3bd (patch) | |
| tree | 4d50f1f78447a721a5e0e988bfa8272587dbd0e5 /exec_response.go | |
| parent | 4c17c972104e2dc50dbee4138c992f620e7f10bd (diff) | |
| download | awwan-06093ed39d7f1e4a7b0e49f9963d2ad2d108d3bd.tar.xz | |
all: refactoring, rename HttpResponse to ExecResponse
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"` +} |
