Skip to content

Commit

Permalink
feat: ttheader streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Sep 12, 2024
1 parent 46f9e3e commit 52f1969
Show file tree
Hide file tree
Showing 20 changed files with 1,340 additions and 917 deletions.
1 change: 1 addition & 0 deletions codec/protobuf/echo-grpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ service Echo {
// === streaming ===
//----------------------service-------------------
service SEcho {
// bidirectional
rpc echo (stream Request) returns (stream Response) {
}
}
1 change: 1 addition & 0 deletions codec/protobuf/echo-kitex.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ service Echo {
// === streaming ===
//----------------------service-------------------
service SEcho {
// bidirectional
rpc echo (stream Request) returns (stream Response) {
}
}
4 changes: 4 additions & 0 deletions codec/thrift/echo.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ service EchoServer {
Response Echo(1: Request req)
ComplexResponse EchoComplex(1: ComplexRequest req)(api.post = '/echo/complex/:action', api.baseurl = 'example.com', api.param = 'true', api.serializer = 'json')
}

service StreamServer {
Response Echo(1: Request req) (streaming.mode="bidirectional"),
}
2 changes: 1 addition & 1 deletion codec/thrift/gen_code.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kitex -module github.com/cloudwego/kitex-benchmark ./echo.thrift
kitex -module -stream-v2 github.com/cloudwego/kitex-benchmark ./echo.thrift
Loading

0 comments on commit 52f1969

Please sign in to comment.