harp_apps.storage.types¶
- class IBlobStorage[source]¶
Bases:
Protocol- __init__(*args, **kwargs)¶
- forget(blob_ids)[source]¶
Discard anything cached about these blobs, which have been removed by other means.
A backend that caches “this blob exists” has to be told when something deletes rows without going through delete, or it will keep answering from a belief that is no longer true. Backends holding no such cache may ignore this.
- class IStorage[source]¶
Bases:
Protocol- __init__(*args, **kwargs)¶
- async finalize()[source]¶
Coroutine function to finalize the instance. Should release resources, close files etc… The caller should make sure to call finalize on all cases where the instance is not needed anymore to get a clean shutdown.
- async get_transaction_list(*, username, with_messages=False, filters=None, page=1, cursor='', text_search='')[source]¶
Find transactions, using optional filters, for example to be displayed in the dashboard.