Move history geo enrichment into history service

This commit is contained in:
2026-04-17 16:28:53 +02:00
parent 8c6950afc1
commit 487f252a4d
4 changed files with 109 additions and 50 deletions

View File

@@ -300,6 +300,7 @@ class HistoryService(Protocol):
source: str = "fail2ban",
page: int = 1,
page_size: int = 100,
http_session: aiohttp.ClientSession | None = None,
geo_enricher: GeoEnricher | None = None,
db: aiosqlite.Connection | None = None,
) -> HistoryListResponse:
@@ -310,6 +311,7 @@ class HistoryService(Protocol):
socket_path: str,
ip: str,
*,
http_session: aiohttp.ClientSession | None = None,
geo_enricher: GeoEnricher | None = None,
) -> IpDetailResponse | None:
...