Documentation
¶
Index ¶
- type Store
- func (s *Store) ClearQueueHistory(ctx context.Context, statuses []domain.JobStatus) (int64, error)
- func (s *Store) Close() error
- func (s *Store) DeleteQueueItems(ctx context.Context, ids []string) (int64, error)
- func (s *Store) ExpectedSchemaVersion() int
- func (s *Store) GetActiveQueueItems(ctx context.Context) ([]*domain.QueueItem, error)
- func (s *Store) GetAggregatorReleaseCacheByID(ctx context.Context, id string) (*domain.Release, error)
- func (s *Store) GetQueueEvents(ctx context.Context, queueID string) ([]*domain.QueueItemEvent, error)
- func (s *Store) GetQueueItem(ctx context.Context, id string) (*domain.QueueItem, error)
- func (s *Store) GetQueueItemFiles(ctx context.Context, queueItemID string) ([]*domain.DownloadFile, error)
- func (s *Store) GetQueueItems(ctx context.Context) ([]*domain.QueueItem, error)
- func (s *Store) MarkReleaseCacheMissing(ctx context.Context, releaseID, reason string) error
- func (s *Store) MarkReleaseCached(ctx context.Context, releaseID string, blobSize int64, blobMtimeUnix int64) error
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) ReconcileBlobCacheIndex(ctx context.Context) error
- func (s *Store) ReconcileReleaseCache(ctx context.Context) error
- func (s *Store) ResetStuckQueueItems(ctx context.Context, newStatus domain.JobStatus, ...) error
- func (s *Store) RunMigrations() error
- func (s *Store) SaveQueueEvent(ctx context.Context, ev *domain.QueueItemEvent) error
- func (s *Store) SaveQueueItem(ctx context.Context, item *domain.QueueItem) error
- func (s *Store) SaveQueueItemFiles(ctx context.Context, queueItemID string, files []*domain.DownloadFile) error
- func (s *Store) SchemaVersion(ctx context.Context) (int, error)
- func (s *Store) SearchAggregatorReleaseCache(ctx context.Context, query string, limit int) ([]*domain.Release, error)
- func (s *Store) UpsertAggregatorReleaseCache(ctx context.Context, releases []*domain.Release) error
- func (s *Store) ValidateSchema(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ClearQueueHistory ¶
func (*Store) DeleteQueueItems ¶
func (*Store) ExpectedSchemaVersion ¶
func (*Store) GetActiveQueueItems ¶
GetActiveQueueItems returns all jobs that are not in a terminal state (Completed/Failed).
func (*Store) GetAggregatorReleaseCacheByID ¶
func (s *Store) GetAggregatorReleaseCacheByID(ctx context.Context, id string) (*domain.Release, error)
GetAggregatorReleaseCacheByID returns one cached release by release id.
func (*Store) GetQueueEvents ¶
func (*Store) GetQueueItem ¶
GetQueueItem fetches a single job by its ID, fully hydrated with its Release.
func (*Store) GetQueueItemFiles ¶
func (*Store) GetQueueItems ¶
GetQueueItems returns all items in the queue, ordered by creation date.
func (*Store) MarkReleaseCacheMissing ¶
func (*Store) MarkReleaseCached ¶
func (*Store) ReconcileBlobCacheIndex ¶
func (*Store) ReconcileReleaseCache ¶
func (*Store) ResetStuckQueueItems ¶
func (*Store) RunMigrations ¶
func (*Store) SaveQueueEvent ¶
func (*Store) SaveQueueItem ¶
func (*Store) SaveQueueItemFiles ¶
func (*Store) SearchAggregatorReleaseCache ¶
func (s *Store) SearchAggregatorReleaseCache(ctx context.Context, query string, limit int) ([]*domain.Release, error)
SearchAggregatorReleaseCache searches cached releases by title.
func (*Store) UpsertAggregatorReleaseCache ¶
UpsertAggregatorReleaseCache stores/replaces release cache entries for Aggregator queries.
Click to show internal directories.
Click to hide internal directories.