miniflux.appminiflux.app/worker Index | Files

package worker

import "miniflux.app/worker"

Index

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool handles a pool of workers.

func NewPool

func NewPool(store *storage.Storage, nbWorkers int) *Pool

NewPool creates a pool of background workers.

func (*Pool) Push

func (p *Pool) Push(jobs model.JobList)

Push send a list of jobs to the queue.

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker refreshes a feed in the background.

func (*Worker) Run

func (w *Worker) Run(c chan model.Job)

Run wait for a job and refresh the given feed.

Source Files

pool.go worker.go

Version
v1.0.46 (latest)
Published
Jul 22, 2023
Platform
linux/amd64
Imports
7 packages
Last checked
2 weeks ago

Tools for package owners.