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

ambee/giterated

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

woo

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨2d48bc0

⁨src/backend/discovery.rs⁩ - ⁨475⁩ bytes
Raw
1 use anyhow::Error;
2
3 use crate::{messages::discovery::DiscoveryMessage, model::repository::Repository};
4
5 use super::DiscoveryBackend;
6
7 pub struct GiteratedDiscoveryProtocol {}
8
9 #[async_trait::async_trait]
10 impl DiscoveryBackend for GiteratedDiscoveryProtocol {
11 async fn try_handle(&mut self, request: &DiscoveryMessage) -> Result<bool, Error> {
12 todo!()
13 }
14
15 async fn search(&mut self, search: &str) -> Result<Vec<Repository>, Error> {
16 todo!()
17 }
18 }
19