README

gRPC Hello World

Follow these setup to run the quick start example:

  1. Get the code:

    $ go get google.golang.org/grpc/examples/helloworld/greeter_client
    $ go get google.golang.org/grpc/examples/helloworld/greeter_server
    
  2. Run the server:

    $ $(go env GOPATH)/bin/greeter_server &
    
  3. Run the client:

    $ $(go env GOPATH)/bin/greeter_client
    Greeting: Hello world
    

For more details (including instructions for making a small change to the example code) or if you're having trouble running this example, see Quick Start.

Directories

Path Synopsis
Package data provides convenience routines to access files in the data directory.
Package data provides convenience routines to access files in the data directory.
features
authentication/client
The client demonstrates how to supply an OAuth2 token for every RPC.
The client demonstrates how to supply an OAuth2 token for every RPC.
authentication/server
The server demonstrates how to consume and validate OAuth2 tokens provided by clients for each RPC.
The server demonstrates how to consume and validate OAuth2 tokens provided by clients for each RPC.
cancellation/client
Binary client is an example client.
Binary client is an example client.
cancellation/server
Binary server is an example server.
Binary server is an example server.
compression/client
Binary client is an example client.
Binary client is an example client.
compression/server
Binary server is an example server.
Binary server is an example server.
deadline/client
Binary client is an example client.
Binary client is an example client.
deadline/server
Binary server is an example server.
Binary server is an example server.
debugging/client
Binary client is an example client.
Binary client is an example client.
debugging/server
Binary server is an example server.
Binary server is an example server.
encryption/ALTS/client
Binary client is an example client.
Binary client is an example client.
encryption/ALTS/server
Binary server is an example server.
Binary server is an example server.
encryption/TLS/client
Binary client is an example client.
Binary client is an example client.
encryption/TLS/server
Binary server is an example server.
Binary server is an example server.
errors/client
Binary client is an example client.
Binary client is an example client.
errors/server
Binary server is an example server.
Binary server is an example server.
health/client
Binary client is an example client.
Binary client is an example client.
health/server
Binary server is an example server.
Binary server is an example server.
interceptor/client
Binary client is an example client.
Binary client is an example client.
interceptor/server
Binary server is an example server.
Binary server is an example server.
keepalive/client
Binary client is an example client.
Binary client is an example client.
keepalive/server
Binary server is an example server.
Binary server is an example server.
load_balancing/client
Binary client is an example client.
Binary client is an example client.
load_balancing/server
Binary server is an example server.
Binary server is an example server.
metadata/client
Binary client is an example client.
Binary client is an example client.
metadata/server
Binary server is an example server.
Binary server is an example server.
multiplex/client
Binary client is an example client.
Binary client is an example client.
multiplex/server
Binary server is an example server.
Binary server is an example server.
name_resolving/client
Binary client is an example client.
Binary client is an example client.
name_resolving/server
Binary server is an example server.
Binary server is an example server.
reflection/server
Binary server is an example server.
Binary server is an example server.
retry/client
Binary client is an example client.
Binary client is an example client.
retry/server
Binary server is an example server.
Binary server is an example server.
wait_for_ready
Binary wait_for_ready is an example for "wait for ready".
Binary wait_for_ready is an example for "wait for ready".
xds/client
Binary main implements a client for Greeter service using gRPC's client-side support for xDS APIs.
Binary main implements a client for Greeter service using gRPC's client-side support for xDS APIs.
xds/server
Binary server demonstrated gRPC's support for xDS APIs on the server-side.
Binary server demonstrated gRPC's support for xDS APIs on the server-side.
greeter_client
Package main implements a client for Greeter service.
Package main implements a client for Greeter service.
greeter_server
Package main implements a server for Greeter service.
Package main implements a server for Greeter service.
route_guide
client
Package main implements a simple gRPC client that demonstrates how to use gRPC-Go libraries to perform unary, client streaming, server streaming and full duplex RPCs.
Package main implements a simple gRPC client that demonstrates how to use gRPC-Go libraries to perform unary, client streaming, server streaming and full duplex RPCs.
server
Package main implements a simple gRPC server that demonstrates how to use gRPC-Go libraries to perform unary, client streaming, server streaming and full duplex RPCs.
Package main implements a simple gRPC server that demonstrates how to use gRPC-Go libraries to perform unary, client streaming, server streaming and full duplex RPCs.