nali/geo/
fakegeo.rs

1use super::geodb::{GeoDB, GeoLocation};
2
3pub struct FakeGeo {}
4
5impl FakeGeo {
6    pub fn new() -> Self {
7        Self {}
8    }
9}
10
11impl Default for FakeGeo {
12    fn default() -> Self {
13        Self::new()
14    }
15}
16
17impl GeoDB for FakeGeo {
18    fn lookup(&self, _ip: &str) -> Option<GeoLocation> {
19        Some(GeoLocation {
20            location: "Fake Location".to_string(),
21        })
22    }
23}