arche 3.0.0

An opinionated backend foundation for Axum applications, providing batteries-included integrations for cloud services, databases, authentication, middleware, and logging.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod client;
mod config;
mod providers;

pub use client::{VertexClient, VertexProvider};
pub use config::VertexConfig;

use crate::error::AppError;

pub async fn get_vertex_client(
    provider: VertexProvider,
    config: Option<VertexConfig>,
) -> Result<VertexClient, AppError> {
    let auth = config::resolve_auth(config).await?;
    let http = reqwest::Client::new();
    Ok(VertexClient::new(http, auth, provider))
}