summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 27dffea..6407236 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -10,15 +10,13 @@ pub mod helix;
pub mod kraken;
pub mod types;
pub mod error;
+pub mod sync;
+
pub use self::helix::Client as HelixClient;
pub use self::kraken::Client as KrakenClient;
use reqwest::r#async::Client as ReqwestClient;
-use reqwest::header::HeaderMap;
-use std::marker::PhantomData;
-use std::sync::Arc;
-use std::collections::BTreeMap;
pub struct Client {
pub helix: HelixClient,
@@ -34,21 +32,3 @@ impl Client {
}
}
}
-
-trait Request<T> {
- fn url(&self) -> String;
- fn headers(&self) -> &HeaderMap;
- fn query(&self) -> &BTreeMap<String, String>;
- fn returns(&self) -> T;
-}
-
-pub struct GetRequest<T> {
- inner: Arc<GetRequestRef<T>>,
-}
-
-struct GetRequestRef<T> {
- url: String,
-// headers: HeaderMap,
-// query: BTreeMap<String, String>,
- returns: PhantomData<T>,
-}