File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,16 @@ import (
1111)
1212
1313const (
14- TaskPending TaskStatus = iota
15- TaskRunning
16- TaskSuccess
17- TaskFailed
18- TaskCancelled
14+ Insert DbAction = "insert"
15+ Update DbAction = "update"
16+ Upsert DbAction = "upsert"
17+ Delete DbAction = "delete"
1918)
2019
2120type TaskStatus int8
2221
22+ type DbAction string
23+
2324type StartAppRequest struct {
2425 AppName string `json:"appName"`
2526 AppPort uint `json:"appPort"`
@@ -89,7 +90,7 @@ type ExecFuncResponse struct {
8990
9091// PutRequest represents the JSON structure for put operations
9192type PutRequest struct {
92- Action string `json:"action"`
93+ Action DbAction `json:"action"`
9394 Collection string `json:"collection"`
9495 Key string `json:"key"`
9596 Item map [string ]interface {} `json:"item"`
You can’t perform that action at this time.
0 commit comments