outboxworker

package
v0.0.0-...-5a762db Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FusionOutboxWorker

type FusionOutboxWorker struct {
	*entroq.Worker
	// contains filtered or unexported fields
}

OutboxWorker is a worker that reads from a task queue (analytic outbox) and stores results in a database.

func NewFusion

func NewFusion(eqc *entroq.EntroQ, pgdb *sql.DB, q string) *FusionOutboxWorker

New creates an outbox worker that can be run.

func (*FusionOutboxWorker) Run

Run starts a worker and doesn't exit until it is cleanly stopped, encounters an error, or the context is canceled.

type OutboxWorker

type OutboxWorker struct {
	*entroq.Worker
	// contains filtered or unexported fields
}

OutboxWorker is a worker that reads from a task queue (analytic outbox) and stores results in a database.

func New

func New(eqc *entroq.EntroQ, pgdb *sql.DB, q, fusGenQ string) *OutboxWorker

New creates an outbox worker that can be run.

func (*OutboxWorker) Run

func (w *OutboxWorker) Run(ctx context.Context) error

Run starts a worker and doesn't exit until it is cleanly stopped, encounters an error, or the context is canceled.

Jump to

Keyboard shortcuts

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