Skip to content

Commit 286f56b

Browse files
committed
transfer workflow from parent
0 parents  commit 286f56b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+6964
-0
lines changed

Makefile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
lint:
18+
golangci-lint run --tests=false
19+
build:
20+
CGO_ENABLED=0 go build -o bin/eventmesh-workflow
21+
# goimports
22+
# -e report all errors (not just the first 10 on different lines)
23+
# -d display diffs instead of rewriting files
24+
# -local put imports beginning with this string after 3rd-party packages; comma-separated list
25+
# gofmt
26+
# -e report all errors (not just the first 10 on different lines)
27+
# -d display diffs instead of rewriting files
28+
# -s simplify code
29+
# -w write result to (source) file instead of stdout
30+
fmt:
31+
find . -name "*.go" | xargs goimports -e -d -local git.code.oa.com -w && \
32+
find . -name "*.go" | xargs gofmt -e -d -s -w
33+
test:
34+
go test -v ./... -gcflags "all=-N -l"
35+
36+
cover:
37+
go test ./... -gcflags "all=-N -l" --covermode=count -coverprofile=cover.out.tmp
38+
cat cover.out.tmp | grep -v "_mock.go" | grep -v ".pb.go" > cover.out
39+
rm cover.out.tmp
40+
go tool cover -html=cover.out

api/proto/workflow.pb.go

Lines changed: 266 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/proto/workflow.proto

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
syntax = "proto3";
19+
20+
package eventmesh.workflow.api.protocol;
21+
22+
option java_multiple_files = true;
23+
option java_package="org.apache.eventmesh.common.protocol.workflow.protos";
24+
option java_outer_classname = "EventmeshWorkflowGrpc";
25+
26+
option go_package = "github.com/apache/incubator-eventmesh/eventmesh-workflow-go/api/proto";
27+
28+
service Workflow {
29+
rpc Execute (ExecuteRequest) returns (ExecuteResponse) {}
30+
}
31+
32+
message ExecuteRequest {
33+
string id = 1;
34+
string instance_id = 2;
35+
string task_instance_id = 3;
36+
string input = 4;
37+
}
38+
39+
message ExecuteResponse {
40+
string instance_id = 1;
41+
}

0 commit comments

Comments
 (0)