features/ directory

Directories

PathSynopsis
features/advancedtls
features/advancedtls/clientBinary client is an example client demonstrating use of advancedtls, to set up a secure gRPC client connection with various TLS authentication methods.
features/advancedtls/serverBinary server is an example client demonstrating how to set up a secure gRPC server using advancedtls.
features/authentication
features/authentication/clientThe client demonstrates how to supply an OAuth2 token for every RPC.
features/authentication/serverThe server demonstrates how to consume and validate OAuth2 tokens provided by clients for each RPC.
features/authz
features/authz/clientBinary client demonstrates how to include authorization credentials in the form of metadata in every RPC for server side validation.
features/authz/serverBinary server demonstrates how to validate authorization credential metadata for incoming RPCs.
features/authz/tokenPackage token implements an example of authorization token encoding/decoding that can be used in RPC headers.
features/cancellation
features/cancellation/clientBinary client demonstrates how to cancel in-flight RPCs by canceling the context passed to the RPC.
features/cancellation/serverBinary server demonstrates how to handle canceled contexts when a client cancels an in-flight RPC.
features/compression
features/compression/clientBinary client demonstrates how to specify compression options when performing RPCs.
features/compression/serverBinary server demonstrates how to install and support compressors for incoming RPCs.
features/csm_observability
features/csm_observability/clientBinary client is a client for the CSM Observability example.
features/csm_observability/serverBinary server is a server for the CSM Observability example.
features/customloadbalancer
features/customloadbalancer/clientBinary client is a client for the custom load balancer example.
features/customloadbalancer/client/customroundrobinPackage customroundrobin provides an example for the custom roundrobin balancer.
features/customloadbalancer/serverBinary server is a server for the custom load balancer example.
features/deadline
features/deadline/clientBinary client demonstrates how to set deadlines for RPCs and how to handle deadline-exceeded errors.
features/deadline/serverBinary server demonstrates how to handle RPCs with deadlines and how to propagate deadlines in requests.
features/debugging
features/debugging/clientBinary client demonstrates how to use logging and Channelz for debugging gRPC operations.
features/debugging/serverBinary server demonstrates how to enable logging and Channelz for debugging gRPC services.
features/dualstack
features/dualstack/clientBinary client is a client for the dualstack example.
features/dualstack/serverBinary server is a server for the dualstack example.
features/encryption
features/encryption/ALTS
features/encryption/ALTS/clientBinary client demonstrates how to use ALTS credentials for secure gRPC communication.
features/encryption/ALTS/serverBinary server demonstrates how to use ALTS credentials to secure gRPC services.
features/encryption/mTLS
features/encryption/mTLS/clientBinary client is an example client which connects to the server using mTLS.
features/encryption/mTLS/serverBinary server is an example server which authenticates clients using mTLS.
features/encryption/TLS
features/encryption/TLS/clientBinary client demonstrates how to use TLS credentials for secure gRPC communication.
features/encryption/TLS/serverBinary server demonstrates how to use TLS credentials to secure gRPC services.
features/error_details
features/error_details/clientBinary client demonstrates how to handle error messages from a gRPC server.
features/error_details/serverBinary server demonstrates how to provide error messages in gRPC responses.
features/error_handling
features/error_handling/clientBinary client demonstrates how to handle errors returned by a gRPC server.
features/error_handling/serverBinary server demonstrates how to return specific error codes in gRPC responses.
features/flow_control
features/flow_control/clientBinary client demonstrates how the gRPC flow control blocks sending when the receiver is not ready.
features/flow_control/serverBinary server demonstrates how gRPC flow control block sending when the receiver is not ready.
features/gracefulstop
features/gracefulstop/clientBinary client demonstrates sending multiple requests to server and observe graceful stop.
features/gracefulstop/serverBinary server demonstrates how to gracefully stop a gRPC server.
features/health
features/health/clientBinary client demonstrates how to check and observe gRPC server health using the health library.
features/health/serverBinary server demonstrates how to manage and report its health status using the gRPC health library.
features/interceptor
features/interceptor/clientBinary client demonstrates how to use interceptors to observe or control the behavior of gRPC including logging, authentication,metrics collection, etc.
features/interceptor/serverBinary server demonstrates how to use interceptors to observe or control the behavior of gRPC including logging, authentication,metrics collection, etc.
features/keepalive
features/keepalive/clientBinary client demonstrates how to configure keepalive pings to maintain connectivity and detect stale connections.
features/keepalive/serverBinary server demonstrates how to enforce keepalive settings and manage idle connections to maintain active client connections.
features/load_balancing
features/load_balancing/clientBinary client demonstrates how to configure load balancing policies to distribute RPCs across backend servers.
features/load_balancing/serverBinary server demonstrates how to spin up multiple server backends to enable client-side load balancing.
features/metadata
features/metadata/clientBinary client demonstrates how to send and receive metadata to and from an RPC.
features/metadata_interceptor
features/metadata_interceptor/clientBinary client demonstrates how to receive metadata in RPC headers and trailers.
features/metadata_interceptor/serverBinary server demonstrates how to update metadata from interceptors on server.
features/metadata/serverBinary server demonstrates how to send and read metadata to and from RPC.
features/multiplex
features/multiplex/clientBinary client demonstrates how to use a single grpc.ClientConn for multiple service stubs.
features/multiplex/serverBinary server demonstrates how to use a single grpc.Server instance to register and serve multiple services.
features/name_resolving
features/name_resolving/clientBinary client demonstrates how to use custom name resolvers to resolve server backend addresses.
features/name_resolving/serverBinary server demonstrates how to set up a gRPC server that listens on a specified port for name resolution examples.
features/observability
features/observability/clientBinary client demonstrates how to instrument RPCs with logging, metrics, and tracing.
features/observability/serverBinary server demonstrates how to instrument RPCs for logging, metrics, and tracing.
features/opentelemetry
features/opentelemetry/clientBinary client is a client for the OpenTelemetry example.
features/opentelemetry/serverBinary server is a server for the OpenTelemetry example.
features/orca
features/orca/clientBinary client demonstrates the use of a custom LB policy that handles ORCA per-call and out-of-band metrics for load reporting.
features/orca/serverBinary server demonstrates how to use ORCA for reporting out-of-band and per-RPC load metrics.
features/proto
features/proto/echo
features/reflection
features/reflection/serverBinary server demonstrates how to register multiple services and enable client discovery.
features/retry
features/retry/clientBinary client demonstrates how to enable and configure retry policies for gRPC requests.
features/retry/serverBinary server demonstrates to enforce retries on client side.
features/stats_monitoring
features/stats_monitoring/clientBinary client is an example client to illustrate the use of the stats handler.
features/stats_monitoring/serverBinary server is an example server to illustrate the use of the stats handler.
features/stats_monitoring/statshandlerPackage statshandler is an example pkg to illustrate the use of the stats handler.
features/unix_abstract
features/unix_abstract/clientBinary client is an example client which dials a server on an abstract unix socket.
features/unix_abstract/serverBinary server is an example server listening for gRPC connections on an abstract unix socket.
features/wait_for_readyBinary wait_for_ready is an example for "wait for ready".
features/xds
features/xds/clientBinary main implements a client for Greeter service using gRPC's client-side support for xDS APIs.
features/xds/serverBinary server demonstrated gRPC's support for xDS APIs on the server-side.
Version
v0.0.0-20250418172310-54e7e26a1f32 (latest)
Published
Apr 18, 2025
Platform
linux/amd64
Last checked
1 minute ago

Tools for package owners.