echo-client

command
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 10 Imported by: 0

README

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
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

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