redis_enterprise/
local.rs1use crate::client::RestClient;
9use crate::error::Result;
10use serde_json::Value;
11
12pub struct LocalHandler {
13 client: RestClient,
14}
15
16impl LocalHandler {
17 pub fn new(client: RestClient) -> Self {
18 LocalHandler { client }
19 }
20
21 pub async fn master_healthcheck(&self) -> Result<Value> {
23 self.client.get("/v1/local/node/master_healthcheck").await
24 }
25
26 pub async fn services(&self) -> Result<Value> {
28 self.client.get("/v1/local/services").await
29 }
30
31 pub async fn services_update(&self, body: Value) -> Result<Value> {
33 self.client.post("/v1/local/services", &body).await
34 }
35}