Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

545 B
Raw Blame

OpenSearch Client

This is a client for interacting with OpenSearch.

Usage

use opensearch_client::OpensearchClient;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let url = std::env::var("OPENSEARCH_URL").context("OPENSEARCH_URL not set")?;
    let username = std::env::var("OPENSEARCH_USERNAME")?;
    let password = std::env::var("OPENSEARCH_PASSWORD")?;

    let client = OpensearchClient::new(url, username, password)?;

    Ok(())
}

Examples

For more examples, see the examples directory.