README
¶
Example gRPC Echo Server
This example server demonstrates how to run gRPC accessible via grpc
, grpc-web
, grpc-gateway
, and grpc-over-webrtc
all on the same port while hosting other HTTP services.
Build
make build
Run
make run-server
make run-client
With auth
make run-server-auth
make run-client-auth
With auth via mTLS (no UI)
make run-server-auth-tls
make run-client-auth-tls
With an external auth source
make run-server-auth-internal
# Use the UI on this onemake run-server-auth-external
make run-client-auth-external
Directories
¶
Path | Synopsis |
---|---|
Package main runs a gRPC client over WebRTC connecting to the proto/rpc/examples/echo/v1 service.
|
Package main runs a gRPC client over WebRTC connecting to the proto/rpc/examples/echo/v1 service. |
Package server implement an echo server used for testing.
|
Package server implement an echo server used for testing. |
cmd
Package main runs a gRPC server running the proto/rpc/examples/echo/v1 service.
|
Package main runs a gRPC server running the proto/rpc/examples/echo/v1 service. |
Click to show internal directories.
Click to hide internal directories.