jobpoolengine

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobPoolEngine

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

JobPoolEngine processes the messages from a JobPool in parallel, without any ordering guarantees

func New

func New(queue goduck.MessagePool, processor goduck.Processor, nWorkers int) *JobPoolEngine

New creates a new JobPoolEngine

func NewFromEndpoint added in v0.3.0

func NewFromEndpoint(
	e endpoint.Endpoint,
	decoder goduck.EndpointDecoder,
	queue goduck.MessagePool,
	nWorkers int,
) *JobPoolEngine

NewFromEndpoint creates a JobPoolEngine from a go-kit endpoint

func (*JobPoolEngine) Run

func (e *JobPoolEngine) Run(ctx context.Context) error

Run starts processing the messages, until @ctx is closed

Jump to

Keyboard shortcuts

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