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
/// CGO method which allows the Go client to request an update to the connection password.
855
+
///
856
+
/// `client_adapter_ptr` is a pointer to a valid `GlideClusterClient` returned in the `ConnectionResponse` from [`create_client`].
857
+
/// `channel` is a pointer to a valid payload buffer which is created in the Go client.
858
+
/// `password` is a pointer to C string representation of the password passed in Go.
859
+
/// `immediate_auth` is a boolean flag to indicate if the password should be updated immediately.
860
+
/// `success_callback` is the callback that will be called when a command succeeds.
861
+
/// `failure_callback` is the callback that will be called when a command fails.
862
+
///
863
+
/// # Safety
864
+
///
865
+
/// * `client_adapter_ptr` must be obtained from the `ConnectionResponse` returned from [`create_client`].
866
+
/// * `client_adapter_ptr` must be valid until `close_client` is called.
867
+
/// * `channel` must be valid until it is passed in a call to [`free_command_response`].
868
+
/// * Both the `success_callback` and `failure_callback` function pointers need to live while the client is open/active. The caller is responsible for freeing both callbacks.
0 commit comments