Files
step-ca-webui/shared/db_logger_interface.py
2024-09-28 00:15:30 +05:00

14 lines
386 B
Python

from typing import Optional, List, Protocol
from shared.models import LogEntry, Paging, LogsFilter
class IDBLogger(Protocol):
def insert_log(self, log_entry: LogEntry) -> None: ...
def get_logs(self, filters: LogsFilter, paging: Paging) -> List[LogEntry]: ...
def get_log_entry(self, log_id: int) -> Optional[LogEntry]: ...
def get_next_entry_id(self) -> int: ...