consumer

package
v0.0.0-...-4d6a655 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 8 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 {
	// contains filtered or unexported fields
}

Worker is responsible for fetching items and inserting the items in the database

func NewWorker

func NewWorker(logger *zap.Logger, db database.Database, hn hn.Client) *Worker

NewWorker creates a new worker

func (*Worker) Run

func (w *Worker) Run(ctx context.Context, message <-chan *queue.Message, wg *sync.WaitGroup)

Run is responsible for processing messages

Jump to

Keyboard shortcuts

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