Commit 0a7f75f
authored
Add service and method config (#1788)
Motivation:
When resoling addresses, gRPC clients can discover configuration to use
published by service maintainers. This is in the form of 'service
config' and typically encoded as JSON. However the structure of the
config is a translation of the service config protobuf message using the
standard proto to JSON mappings.
This change expands on the existing `MethodConfiguration` to allow it to
be decoded from JSON and adds a `ServiceConfiguration` which can also be
decoded from JSON.
Modifications:
- Add additional properties to `MethodConfiguration` and make it
`Codabale`
- Add `ServiceConfiguration` and make it `Codabale`
- Add a `RuntimeError`
- Add the `service_config.proto` message and its dependencies and
generate these messages into the test module.
Result:
Service config and method config are more fully featured1 parent 0daf4a1 commit 0a7f75f
File tree
20 files changed
+7220
-311
lines changed- Protos
- Sources/GRPCCore
- Configuration
- Tests
- GRPCCoreTests
- Call/Client
- Internal
- ClientRPCExecutorTestSupport
- Configuration
- Generated
- GRPCInProcessTransportTests
20 files changed
+7220
-311
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
175 | 189 | | |
176 | 190 | | |
177 | 191 | | |
| |||
187 | 201 | | |
188 | 202 | | |
189 | 203 | | |
| 204 | + | |
0 commit comments