aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker/models.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-07 22:52:44 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 04:02:37 +0900
commit4295abfd48ad8ce217b251d07102deb8aee413d5 (patch)
treeb998f6f6c61a07760f5335e4aeeecf3893fd3758 /worker/models.go
parent5a2217f7a9d01b925c3db6491a363e6e4db9ca42 (diff)
downloadiosdc-japan-2024-albatross-4295abfd48ad8ce217b251d07102deb8aee413d5.tar.gz
iosdc-japan-2024-albatross-4295abfd48ad8ce217b251d07102deb8aee413d5.tar.zst
iosdc-japan-2024-albatross-4295abfd48ad8ce217b251d07102deb8aee413d5.zip
refactor: rename task result's "result" to "status" for consistency
Diffstat (limited to 'worker/models.go')
-rw-r--r--worker/models.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/worker/models.go b/worker/models.go
index b838fe0..a7310bd 100644
--- a/worker/models.go
+++ b/worker/models.go
@@ -33,7 +33,7 @@ func (req *swiftCompileRequestData) validate() error {
}
type swiftCompileResponseData struct {
- Result string `json:"result"`
+ Status string `json:"status"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
@@ -44,7 +44,7 @@ type wasmCompileRequestData struct {
}
type wasmCompileResponseData struct {
- Result string `json:"result"`
+ Status string `json:"status"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
@@ -78,7 +78,7 @@ func (req *testRunRequestData) validate() error {
}
type testRunResponseData struct {
- Result string `json:"result"`
+ Status string `json:"status"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}