Daniel Alm 98f7fa6316 For service servers, replace inheritance with composition. пре 7 година
..
Cocoapods bf7edbdc1a minor update to cocoapods example пре 7 година
EchoXcode 98f7fa6316 For service servers, replace inheritance with composition. пре 7 година
Google 2cc6af7270 Update Google sample for recent API changes. пре 7 година
SimpleXcode f814a34949 Formatting: Replace several occurrences of `catch (let ...)` with just `catch`. пре 7 година
README.md 3cfc04a783 Move Google samples under a common directory + minor cleanup of Makefile. пре 8 година

README.md

Examples

To build the Xcode examples, make sure required third party libraries (specifically swift-protobuf) are retrieved by running the script in the third_party toplevel directory:

$ cd third_party
$ sh RUNME.sh

Swift gRPC generated code examples

Echo The Echo sample demonstrates a simple echo service with nonstreaming and streaming APIS. It can be run with or without TLS. Swift clients and servers are built in a Mac app and in a command-line tool that is built with the Swift Package Manager. An interoperable client and server is in the Echo/Go directory.

The Echo sample uses a client and server interface generated by the Swift gRPC plugin for protoc.

Google API examples

Samples that call Google gRPC APIs are in the Google directory.

Low-level demonstrations

Simple The Simple sample demonstrates the low-level gRPC APIs with clients and servers that can be built with Xcode or the Swift Package Manager.