worker

package
v2.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL