mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Still need to implement queue size limit Also fixes env var consistency between addon and consumer
10 lines
648 B
C#
10 lines
648 B
C#
namespace Producer.Interfaces;
|
|
|
|
public interface IDataStorage
|
|
{
|
|
Task<InsertTorrentResult> InsertTorrents(IReadOnlyCollection<Torrent> torrents, CancellationToken cancellationToken = default);
|
|
Task<IReadOnlyCollection<Torrent>> GetPublishableTorrents(CancellationToken cancellationToken = default);
|
|
Task<UpdatedTorrentResult> SetTorrentsProcessed(IReadOnlyCollection<Torrent> torrents, CancellationToken cancellationToken = default);
|
|
Task<bool> PageIngested(string pageId, CancellationToken cancellationToken = default);
|
|
Task<PageIngestedResult> MarkPageAsIngested(string pageId, CancellationToken cancellationToken = default);
|
|
} |