lib.rs 855 B

1234567891011121314151617181920212223242526272829
  1. use flowy_folder2::deps::FolderCloudService;
  2. use std::sync::Arc;
  3. use flowy_user::event_map::UserAuthService;
  4. pub mod local_server;
  5. mod request;
  6. mod response;
  7. pub mod self_host;
  8. pub mod supabase;
  9. /// In order to run this the supabase test, you need to create a .env file in the root directory of this project
  10. /// and add the following environment variables:
  11. /// - SUPABASE_URL
  12. /// - SUPABASE_ANON_KEY
  13. /// - SUPABASE_KEY
  14. /// - SUPABASE_JWT_SECRET
  15. ///
  16. /// the .env file should look like this:
  17. /// SUPABASE_URL=https://<your-supabase-url>.supabase.co
  18. /// SUPABASE_ANON_KEY=<your-supabase-anon-key>
  19. /// SUPABASE_KEY=<your-supabase-key>
  20. /// SUPABASE_JWT_SECRET=<your-supabase-jwt-secret>
  21. ///
  22. pub trait AppFlowyServer: Send + Sync + 'static {
  23. fn user_service(&self) -> Arc<dyn UserAuthService>;
  24. fn folder_service(&self) -> Arc<dyn FolderCloudService>;
  25. }