Something went wrong. Try again.
advent of atproto
Something went wrong. Try again.
Rust
12345678910111213141516171819202122232425262728293031323334353637383940414243extern crate core;
use crate::atrium::dns_resolver::HickoryDnsTxtResolver;use crate::atrium::stores::{AtriumSessionStore, AtriumStateStore};use atrium_api::agent::Agent;use atrium_identity::did::CommonDidResolver;use atrium_identity::handle::AtprotoHandleResolver;use atrium_oauth::{DefaultHttpClient, OAuthClient};use std::sync::Arc;
pub mod advent;pub mod assets;pub mod atrium;pub mod cache;pub mod db;pub mod models;pub mod web_helpers;
pub mod lexicons;
/// OAuthClientType to make it easier to access the OAuthClient in web requestspub type OAuthClientType = Arc< OAuthClient< AtriumStateStore, AtriumSessionStore, CommonDidResolver<DefaultHttpClient>, AtprotoHandleResolver<HickoryDnsTxtResolver, DefaultHttpClient>, >,>;
/// HandleResolver type to make it easier to access the resolver in web requestspub type HandleResolver = Arc<CommonDidResolver<DefaultHttpClient>>;
/// The agent(what makes atproto calls)pub type OAuthAgentType = Agent< atrium_oauth::OAuthSession< DefaultHttpClient, CommonDidResolver<DefaultHttpClient>, AtprotoHandleResolver<HickoryDnsTxtResolver, DefaultHttpClient>, AtriumSessionStore, >,>;