mirror of
https://github.com/outbackdingo/step-ca-webui.git
synced 2026-01-27 18:20:22 +00:00
14 lines
386 B
Python
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: ...
|