-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the Echo example into model, implementation and runtime (#567)
Motivation: The generated code and implementation for the Echo example is used as part of the example and as well as in the test suite. To make the example more obvious we should split it into its constituent parts: the model (i.e. the definition and generated code), the implementation (of the server), and the runtime (CLI for client and server). Modifications: - Split the Echo example into three modules: `EchoModel` (generated code), `EchoImplementation` (server implementation), and `EchoRuntime` (CLI for client and server). - Update the `Makefile` to target the updated paths - Add missing imports in tests - Make the generated code `public` (instead of `internal`) since we're no longer symlinking into the same module for tests Result: - No more symlinks for Echo - Structure of example is more straightforward
- Loading branch information
Showing
35 changed files
with
121 additions
and
76 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
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
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# EchoNIO, a gRPC NIO Sample App | ||
# Echo, a gRPC Sample App | ||
|
||
This directory contains a simple echo server that demonstrates | ||
all four gRPC API styles (Unary, Server Streaming, Client | ||
Streaming, and Bidirectional Streaming) using the NIO based | ||
Swift gRPC implementation. | ||
This directory contains a simple echo server that demonstrates all four gRPC API | ||
styles (Unary, Server Streaming, Client Streaming, and Bidirectional Streaming) | ||
using the gRPC Swift. | ||
|
||
There are three subdirectories: | ||
* `Model` containing the service and model definitions and generated code, | ||
* `Implementation` containing the server implementation of the generated model, | ||
* `Runtime` containing a CLI for the server and client. |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.