| 123456789101112131415161718192021222324 |
- // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
- // SPDX-License-Identifier: Apache-2.0
- package model // import "miniflux.app/v2/internal/model"
- // Job represents a payload sent to the processing queue.
- type Job struct {
- UserID int64
- FeedID int64
- FeedURL string
- }
- // JobList represents a list of jobs.
- type JobList []Job
- // FeedURLs returns a list of feed URLs from the job list.
- // This is useful for logging or debugging purposes to see which feeds are being processed.
- func (jl *JobList) FeedURLs() []string {
- feedURLs := make([]string, len(*jl))
- for i, job := range *jl {
- feedURLs[i] = job.FeedURL
- }
- return feedURLs
- }
|