2024-08-08 12:00:49: merge [master:958e40c1b5f280b681f8c9bf09c476b347ea7b7e];

This commit is contained in:
txix committed 2024-08-08 12:00:49 +03:00
1 parent bdbb3216ce
commit d8a0db34ef
25 files changed
+1752 -1

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
package domain
import (
"github.com/pkg/errors"
)
var ErrScriptNotFound = errors.New("script not found")
+7
View File
@@ -0,0 +1,7 @@
package domain
type GrpcError struct {
ErrorMessage string
ErrorCode string
Details []interface{}
}
+16
View File
@@ -0,0 +1,16 @@
package domain
type ExecuteByIdRequest struct {
Id string `validate:"required"`
Arg interface{}
}
type ExecuteRequest struct {
Script string `validate:"required"`
Arg interface{}
}
type BatchExecuteByIdsRequest struct {
Ids []string `validate:"required"`
Arg interface{}
}
+16
View File
@@ -0,0 +1,16 @@
package domain
const (
ErrorCompile = "Compilation"
ErrorRunTime = "Runtime"
)
type ScriptResp struct {
Result interface{}
Error *Error
}
type Error struct {
Type string
Description string
}