examples

module
v0.0.0-...-0fe9626 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: Apache-2.0

README

gRPC Hello World

Follow these setup to run the quick start example:

  1. Get the code:

    $ go get github.com/CSCI-2390-Project/grpc-go/examples/helloworld/greeter_client
    $ go get github.com/CSCI-2390-Project/grpc-go/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 command
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 command
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 command
Binary client is an example client.
Binary client is an example client.
cancellation/server command
Binary server is an example server.
Binary server is an example server.
compression/client command
Binary client is an example client.
Binary client is an example client.
compression/server command
Binary server is an example server.
Binary server is an example server.
deadline/client command
Binary client is an example client.
Binary client is an example client.
deadline/server command
Binary server is an example server.
Binary server is an example server.
debugging/client command
Binary client is an example client.
Binary client is an example client.
debugging/server command
Binary server is an example server.
Binary server is an example server.
encryption/ALTS/client command
Binary client is an example client.
Binary client is an example client.
encryption/ALTS/server command
Binary server is an example server.
Binary server is an example server.
encryption/TLS/client command
Binary client is an example client.
Binary client is an example client.
encryption/TLS/server command
Binary server is an example server.
Binary server is an example server.
errors/client command
Binary client is an example client.
Binary client is an example client.
errors/server command
Binary server is an example server.
Binary server is an example server.
health/client command
Binary client is an example client.
Binary client is an example client.
health/server command
Binary server is an example server.
Binary server is an example server.
interceptor/client command
Binary client is an example client.
Binary client is an example client.
interceptor/server command
Binary server is an example server.
Binary server is an example server.
keepalive/client command
Binary client is an example client.
Binary client is an example client.
keepalive/server command
Binary server is an example server.
Binary server is an example server.
load_balancing/client command
Binary client is an example client.
Binary client is an example client.
load_balancing/server command
Binary server is an example server.
Binary server is an example server.
metadata/client command
Binary client is an example client.
Binary client is an example client.
metadata/server command
Binary server is an example server.
Binary server is an example server.
multiplex/client command
Binary client is an example client.
Binary client is an example client.
multiplex/server command
Binary server is an example server.
Binary server is an example server.
name_resolving/client command
Binary client is an example client.
Binary client is an example client.
name_resolving/server command
Binary server is an example server.
Binary server is an example server.
profiling/client command
Binary client is an example client.
Binary client is an example client.
profiling/server command
Binary server is an example server.
Binary server is an example server.
reflection/server command
Binary server is an example server.
Binary server is an example server.
retry/client command
Binary client is an example client.
Binary client is an example client.
retry/server command
Binary server is an example server.
Binary server is an example server.
wait_for_ready command
Binary wait_for_ready is an example for "wait for ready".
Binary wait_for_ready is an example for "wait for ready".
xds/client command
Package main implements a client for Greeter service.
Package main implements a client for Greeter service.
xds/server command
Package main starts Greeter service that will response with the hostname.
Package main starts Greeter service that will response with the hostname.
greeter_client command
Package main implements a client for Greeter service.
Package main implements a client for Greeter service.
greeter_server command
Package main implements a server for Greeter service.
Package main implements a server for Greeter service.
route_guide
client command
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 command
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL