Creates gRPC invocation metadata encoding the TensorBoard version. Usage: `stub.MyRpc(request, metadata=version_metadata())`. Returns: A tuple of key-value pairs (themselves 2-tuples) to be passed as the `metadata` kwarg to gRPC stub API methods.
()
| 249 | |
| 250 | |
| 251 | def version_metadata(): |
| 252 | """Creates gRPC invocation metadata encoding the TensorBoard version. |
| 253 | |
| 254 | Usage: `stub.MyRpc(request, metadata=version_metadata())`. |
| 255 | |
| 256 | Returns: |
| 257 | A tuple of key-value pairs (themselves 2-tuples) to be passed as the |
| 258 | `metadata` kwarg to gRPC stub API methods. |
| 259 | """ |
| 260 | return ((_VERSION_METADATA_KEY, version.VERSION),) |
| 261 | |
| 262 | |
| 263 | def extract_version(metadata): |
no outgoing calls
no test coverage detected
searching dependent graphs…