worker

package
v0.0.0-...-ada256f Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	*instr.Instrumentation
	// contains filtered or unexported fields
}

Worker crawls deliveries from a queue.

func New

func New(name string, crawler *crawler.Crawler, i *instr.Instrumentation) *Worker

New returns a new worker.

func (*Worker) Start

func (w *Worker) Start(ctx context.Context, deliveries <-chan samqp.Delivery)

Start crawling deliveries, synchronously.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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