JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

Huge refactor to prep for moving the daemon over to the plugin architecture

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨5df753c

⁨giterated-plugins/giterated-backend/src/lib.rs⁩ - ⁨569⁩ bytes
Raw
1 pub mod handlers;
2 pub mod value;
3
4 use giterated_models::{instance::Instance, repository::Repository, user::User};
5 use giterated_plugin_sys::{PluginStackBuilder, ValueSettingExt};
6 use handlers::{repository_info, user_get_repositories};
7 use sqlx::PgPool;
8 use value::{user_get_bio, user_get_display_name, user_set_bio, user_set_display_name};
9
10 /// A backend implementation which attempts to resolve data from the instance's database.
11 #[derive(Debug, Clone)]
12 #[allow(unused)]
13 pub struct DatabaseBackend {
14 pub(self) our_instance: Instance,
15 pub(self) pool: PgPool,
16 }
17