You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: model/function.go
+17-8Lines changed: 17 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -17,18 +17,26 @@ package model
17
17
import"encoding/json"
18
18
19
19
const (
20
-
// FunctionTypeREST ...
20
+
// FunctionTypeREST a combination of the function/service OpenAPI definition document URI and the particular service
21
+
// operation that needs to be invoked, separated by a '#'.
21
22
FunctionTypeRESTFunctionType="rest"
22
-
// FunctionTypeRPC ...
23
+
// FunctionTypeRPC a combination of the gRPC proto document URI and the particular service name and service method
24
+
// name that needs to be invoked, separated by a '#'.
23
25
FunctionTypeRPCFunctionType="rpc"
24
-
// FunctionTypeExpression ...
26
+
// FunctionTypeExpression defines the expression syntax.
25
27
FunctionTypeExpressionFunctionType="expression"
26
-
// FunctionTypeGraphQL ...
28
+
// FunctionTypeGraphQL a combination of the GraphQL schema definition URI and the particular service name and
29
+
// service method name that needs to be invoked, separated by a '#'
27
30
FunctionTypeGraphQLFunctionType="graphql"
28
-
// FunctionTypeAsyncAPI ...
31
+
// FunctionTypeAsyncAPI a combination of the AsyncApi definition document URI and the particular service operation
32
+
// that needs to be invoked, separated by a '#'
29
33
FunctionTypeAsyncAPIFunctionType="asyncapi"
30
-
// FunctionTypeOData ...
34
+
// FunctionTypeOData a combination of the GraphQL schema definition URI and the particular service name and service
35
+
// method name that needs to be invoked, separated by a '#'
31
36
FunctionTypeODataFunctionType="odata"
37
+
// FunctionTypeCustom property defines a list of function types that are set by the specification. Some runtime
38
+
// implementations might support additional function types that extend the ones defined in the specification
39
+
FunctionTypeCustomFunctionType="custom"
32
40
)
33
41
34
42
// FunctionType ...
@@ -39,9 +47,10 @@ type Function struct {
39
47
Common
40
48
// Unique function name
41
49
Namestring`json:"name" validate:"required"`
42
-
// If type is `rest`, <path_to_openapi_definition>#<operation_id>. If type is `rpc`, <path_to_grpc_proto_file>#<service_name>#<service_method>. If type is `expression`, defines the workflow expression.
50
+
// If type is `rest`, <path_to_openapi_definition>#<operation_id>. If type is `rpc`, <path_to_grpc_proto_file>#<service_name>#<service_method>.
51
+
// If type is `expression`, defines the workflow expression. If the type is `custom`, <path_to_custom_script>#<custom_service_method>.
0 commit comments