Expose euph::api

This commit is contained in:
Joscha 2022-06-22 21:51:19 +02:00
parent 041ab0c530
commit 60bd6024ae
3 changed files with 5 additions and 6 deletions

View file

@ -1,6 +1,5 @@
mod api; pub mod api;
mod conn; pub mod conn;
// mod room; // mod room;
pub use api::{Message, SessionView, Snowflake, Time, UserId};
// pub use room::Room; // pub use room::Room;

View file

@ -19,9 +19,9 @@ use crate::replies::{self, PendingReply, Replies};
use super::api::packet::{Command, Packet, ParsedPacket}; use super::api::packet::{Command, Packet, ParsedPacket};
use super::api::{ use super::api::{
BounceEvent, Data, HelloEvent, PersonalAccountView, Ping, PingReply, SnapshotEvent, BounceEvent, Data, HelloEvent, PersonalAccountView, Ping, PingReply, SessionView,
SnapshotEvent, Time, UserId,
}; };
use super::{SessionView, Time, UserId};
pub type WsStream = WebSocketStream<MaybeTlsStream<TcpStream>>; pub type WsStream = WebSocketStream<MaybeTlsStream<TcpStream>>;

View file

@ -3,7 +3,7 @@ use chrono::{DateTime, Utc};
use rusqlite::{params, Connection, OptionalExtension}; use rusqlite::{params, Connection, OptionalExtension};
use tokio::sync::{mpsc, oneshot}; use tokio::sync::{mpsc, oneshot};
use crate::euph::Snowflake; use crate::euph::api::Snowflake;
use crate::store::{Msg, MsgStore, Path, Tree}; use crate::store::{Msg, MsgStore, Path, Tree};
use super::Request; use super::Request;