You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow caller to initialize the channel (#93)
In some scenarios, such as when using a Deterministic Simulation
Testing environment such as `turmoil`, when mocking the behaviour of
etcd itself, or using non-Tokio sockets for connecting to etcd, it is
desirable to construct a Tonic channel externally, then "wrap" it in a
`Client` object. This patch enables this use case by adding a
`raw-channel` Cargo feature, which enables the `Client::from_channel`
function.
Co-authored-by: Nathan Moos <nmoos@cisco.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ Examples can be found in [`examples`](./examples).
73
73
-`tls-openssl`: Enables the `openssl`-based TLS connections. This would make your binary dynamically link to `libssl`.
74
74
-`tls-openssl-vendored`: Like `tls-openssl`, however compile openssl from source code and statically link to it.
75
75
-`build-server`: Builds a server variant of the etcd protobuf and re-exports it under the same `proto` package as the `pub-response-field` feature does.
76
+
-`raw-channel`: Allows the caller to construct the underlying Tonic channel used by the client.
Copy file name to clipboardExpand all lines: src/lib.rs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@
54
54
//! - `tls-openssl`: Enables the `openssl`-based TLS connections. This would make your binary dynamically link to `libssl`.
55
55
//! - `tls-openssl-vendored`: Like `tls-openssl`, however compile openssl from source code and statically link to it.
56
56
//! - `build-server`: Builds a server variant of the etcd protobuf and re-exports it under the same `proto` package as the `pub-response-field` feature does.
57
+
//! - `raw-channel`: Allows the caller to construct the underlying Tonic channel used by the client.
0 commit comments