ping

command
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 5 Imported by: 0

README

Ping-Pong

./build/examples/ping/pong

This example creates a client and server channel. The server channel registers a PingService with a ping method, which takes request Headers and a Ping body and returns the same Headers along with a Pong body. The client sends a ping request to the server.

Note that every instance is bidirectional, so the same channel can be used for both sending and receiving requests to peers. New connections are initiated on demand.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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