gRPC Echo client
Overview
- This is a tiny example client used to check connectivity to a gRPC server implementing the Echo service in this repository.
- IMPORTANT: This client uses insecure transport only (no TLS). Use it only in trusted/dev environments.
What it does
- Resolves the provided host to an IP and dials
<ip>:<port> using insecure credentials.
- Calls
EchoService.Check and exits with code 0 on success or non‑zero on error.
Build
go install gitlab.com/gorib/grpc/cmd/echo-client@latest
The binary lands in $GOBIN.
Usage
echo-client [options]
Options:
-h, --help Show help and exit
-v, --verbose Enable verbose output
-H, --host gRPC server host (default: localhost)
-P, --port gRPC server port (default: 80)
Examples
# Check a local server on the default port (80)
echo-client -v
# Check a server on a custom host/port
echo-client -H 127.0.0.1 -P 50051 -v