Skip to content

Commit

Permalink
Merge pull request apache#686 from DMwangnima/feat/triple_filter
Browse files Browse the repository at this point in the history
feat: filter token sample
  • Loading branch information
DMwangnima authored Feb 2, 2024
2 parents 1e0c5be + ba97362 commit 404b4bc
Show file tree
Hide file tree
Showing 11 changed files with 632 additions and 18 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@ jobs:
- name: Check License Header
uses: apache/skywalking-eyes/header@e1a02359b239bd28de3f6d35fdc870250fa513d5

# - name: Switch Dubbo-go version
# run: |
# # Acquire information of branch
# if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
# BRANCH=${{github.base_ref}}
# elif [ "$GITHUB_EVENT_NAME" == "push" ]; then
# BRANCH=$GITHUB_REF_NAME
# else
# echo "$GITHUB_EVENT_NAME event is unsupported right now"
# exit 1
# fi
# echo "EVENT = $GITHUB_EVENT_NAME, BRANCH = $BRANCH"
# # Edit the version
# go mod edit -replace=dubbo.apache.org/dubbo-go/v3=dubbo.apache.org/dubbo-go/v3@$BRANCH
# go mod tidy
- name: Switch Dubbo-go version
run: |
# Acquire information of branch
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
BRANCH=${{github.base_ref}}
elif [ "$GITHUB_EVENT_NAME" == "push" ]; then
BRANCH=$GITHUB_REF_NAME
else
echo "$GITHUB_EVENT_NAME event is unsupported right now"
exit 1
fi
echo "EVENT = $GITHUB_EVENT_NAME, BRANCH = $BRANCH"
# Edit the version
go mod edit -replace=dubbo.apache.org/dubbo-go/v3=dubbo.apache.org/dubbo-go/v3@$BRANCH
go mod tidy
- name: Integration Test
run: |
Expand Down
229 changes: 229 additions & 0 deletions filter/proto/greet.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions filter/proto/greet.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

syntax = "proto3";
package greet;

option go_package = "github.com/apache/dubbo-go-samples/filter/proto;greet";

message GreetRequest {
string name = 1;
}

message GreetResponse {
string greeting = 1;
}

service GreetService {
rpc Greet(GreetRequest) returns (GreetResponse) {}
}
Loading

0 comments on commit 404b4bc

Please sign in to comment.