module documentation
Add idempotency keys to asynchronous gRPC client calls.
The interceptor adds a unique UUID4 key to the x-idempotency-key header. It does not replace an existing key. The key lets the server prevent duplicate effects when a client retries an operation.
| Class | |
Add idempotency keys to unary-unary gRPC calls. |
| Function | add |
Add a new idempotency key to the metadata. |
| Function | ensure |
Ensure an idempotency key is present in the metadata. |
| Function | new |
Generate a new idempotency key. |
| Constant | HEADER |
The gRPC metadata header name used for idempotency keys. |
| Type Variable | |
Undocumented |
| Type Variable | |
Undocumented |
| Variable | log |
Undocumented |
Add a new idempotency key to the metadata.
| Parameters | |
metadata:Metadata | GRPCMetadata | The metadata object to add the key to. |
Ensure an idempotency key is present in the metadata.
Add a new key if the metadata has no key or has an empty key.
| Parameters | |
metadata:Metadata | GRPCMetadata | The metadata object to check and potentially modify. |