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_serverConfiguration (* required)
exit
string
Default exit binding when no conditional routes are viable.
exit: echo_serverroutes*
arrayofobject
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_serverroutes[].guarded
objectas map of namedarrayofstring
Roles required by named guard.
routes:
- guarded:
my_guard:
- echo:messagesroutes[].when
arrayofobject
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: Y3VzdG9tIHZhbHVlwhen[].method
string
gRPC service method name, such as example.EchoService/EchoUnary, or service method pattern such as example.EchoService/*.
when[].metadata
objectas map of namedstringorobjectproperties
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_servertelemetry
object
Defines the desired telemetry for the binding.
telemetry.metrics
array
Telemetry metrics to track
telemetry:
metrics:
- stream.*
- grpc.*
