aboutsummaryrefslogtreecommitdiff
path: root/response.go
diff options
context:
space:
mode:
Diffstat (limited to 'response.go')
-rw-r--r--response.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/response.go b/response.go
new file mode 100644
index 0000000..aaf256a
--- /dev/null
+++ b/response.go
@@ -0,0 +1,9 @@
+package inwx
+
+// A Response contains the Status of a response to a Call
+// as well as the response parameters.
+// Data is nil if there are no response parameters.
+type Response struct {
+ StatusCode Status `json:"code"`
+ Data any `json:"resData"`
+}