grpc client
grpc client
The grpc client binding adapts grpc
request-response streams to http
request-response streams.
grpc_server:
type: grpc
kind: client
exit: tcp_server
Configuration (* required)
exit
string
Default exit binding when no conditional routes are viable.
exit: echo_server
routes*
array
ofobject
Conditional grpc
specific routes.
routes:
- guarded:
my_guard:
- echo:messages
when:
- method: example.EchoService/*
metadata:
custom-text: custom value
custom-binary:
base64: Y3VzdG9tIHZhbHVl
exit: echo_server
routes[].guarded
object
as map of namedarray
ofstring
Roles required by named guard.
routes:
- guarded:
my_guard:
- echo:messages
routes[].when
array
ofobject
List of conditions (any match) to match this route. Read more: When a route matches
routes:
when:
- method: example.EchoService/*
metadata:
custom-text: custom value
custom-binary:
base64: Y3VzdG9tIHZhbHVl
when[].method
string
gRPC service method name, such as example.EchoService/EchoUnary
, or service method pattern such as example.EchoService/*
.
when[].metadata
object
as map of namedstring
orobject
properties
Metadata header name value pairs (all match).
Each metadata header value can be string
or object
with base64
property.
metadata.base64
string
Base64 encoded value for binary metadata header.
routes[].exit
string
Routed exit binding when conditional route matches.
routes:
- when:
...
exit: echo_server
telemetry
object
Defines the desired telemetry for the binding.
telemetry.metrics
array
Telemetry metrics to track
telemetry:
metrics:
- stream.*
- grpc.*