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 |
|