2023-05-21 18:53:59 +08:00
|
|
|
use std::sync::Arc;
|
|
|
|
|
2023-07-29 09:46:24 +08:00
|
|
|
use collab_plugins::cloud_storage::RemoteCollabStorage;
|
2023-07-05 20:57:09 +08:00
|
|
|
|
2023-07-29 09:46:24 +08:00
|
|
|
use flowy_database_deps::cloud::DatabaseCloudService;
|
|
|
|
use flowy_document_deps::cloud::DocumentCloudService;
|
|
|
|
use flowy_folder_deps::cloud::FolderCloudService;
|
|
|
|
use flowy_user_deps::cloud::UserService;
|
2023-05-21 18:53:59 +08:00
|
|
|
|
|
|
|
pub mod local_server;
|
|
|
|
mod request;
|
|
|
|
mod response;
|
|
|
|
pub mod self_host;
|
|
|
|
pub mod supabase;
|
2023-07-05 20:57:09 +08:00
|
|
|
pub mod util;
|
2023-05-21 18:53:59 +08:00
|
|
|
|
|
|
|
pub trait AppFlowyServer: Send + Sync + 'static {
|
2023-07-14 13:37:13 +08:00
|
|
|
fn enable_sync(&self, _enable: bool) {}
|
2023-07-29 09:46:24 +08:00
|
|
|
fn user_service(&self) -> Arc<dyn UserService>;
|
2023-05-23 23:55:21 +08:00
|
|
|
fn folder_service(&self) -> Arc<dyn FolderCloudService>;
|
2023-07-05 20:57:09 +08:00
|
|
|
fn database_service(&self) -> Arc<dyn DatabaseCloudService>;
|
|
|
|
fn document_service(&self) -> Arc<dyn DocumentCloudService>;
|
|
|
|
fn collab_storage(&self) -> Option<Arc<dyn RemoteCollabStorage>>;
|
2023-05-21 18:53:59 +08:00
|
|
|
}
|