generated from cloudwego/.github
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: streaming for extended services (#52)
- Loading branch information
Felix021
authored
Jan 17, 2024
1 parent
3b1ef78
commit 41bc566
Showing
121 changed files
with
8,147 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,8 +44,12 @@ function generate_old() { | |
export PATH=$OLD:$SAVE_PATH | ||
|
||
mkdir -p $dir | ||
GOBIN=$dir go install github.com/cloudwego/kitex/tool/cmd/[email protected] | ||
GOBIN=$dir go install github.com/cloudwego/[email protected] | ||
if [ ! -f "$dir/kitex" ]; then | ||
GOBIN=$dir go install github.com/cloudwego/kitex/tool/cmd/[email protected] | ||
fi | ||
if [ ! -f "$dir/thriftgo" ]; then | ||
GOBIN=$dir go install github.com/cloudwego/[email protected] | ||
fi | ||
if [ ! -f "$dir/kitex" -o ! -f "$dir/thriftgo" ]; then | ||
echo "[old] Unable to install kitex or thriftgo to $dir, please check before continue." | ||
exit 1 | ||
|
@@ -81,10 +85,12 @@ function generate_new() { | |
# Thrift | ||
kitex $module $idl | ||
kitex $module --combine-service idl/combine.thrift | ||
kitex $module --combine-service idl/combine_extend.thrift | ||
|
||
# Thrift Slim | ||
kitex -thrift template=slim -gen-path kitex_gen_slim $module $idl | ||
kitex -thrift template=slim -gen-path kitex_gen_slim $module --combine-service idl/combine.thrift | ||
kitex -thrift template=slim -gen-path kitex_gen_slim $module --combine-service idl/combine_extend.thrift | ||
|
||
# KitexPB | ||
kitex $module idl/api.proto | ||
|
@@ -99,8 +105,12 @@ function generate_new_thriftgo_old_kitex() { | |
export PATH=$dir:$SAVE_PATH | ||
|
||
mkdir -p $dir | ||
GOBIN=$dir go install github.com/cloudwego/kitex/tool/cmd/[email protected] | ||
GOBIN=$dir go install github.com/cloudwego/thriftgo@latest | ||
if [ ! -f "$dir/kitex" ]; then | ||
GOBIN=$dir go install github.com/cloudwego/kitex/tool/cmd/[email protected] | ||
fi | ||
if [ ! -f "$dir/thriftgo" ]; then | ||
GOBIN=$dir go install github.com/cloudwego/thriftgo@latest | ||
fi | ||
if [ ! -f "$dir/kitex" -o ! -f "$dir/thriftgo" ]; then | ||
echo "[cross] Unable to install kitex or thriftgo to $dir, please check before continue." | ||
exit 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2023 CloudWeGo Authors | ||
// | ||
// Licensed 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. | ||
|
||
namespace go combine_extend | ||
|
||
include "api.thrift" | ||
|
||
|
||
service A extends api.PingPongOnlyService {} | ||
|
||
service B extends api.StreamOnlyServiceChildChild {} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.