queue

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package queue provides OPTIONAL infrastructure adapters for job queuing (in-memory or Redis-backed) with priority routing and backpressure.

This package is NOT required for core data transformation functionality. It is provided as a convenience for applications that need to queue transformation jobs. Most teams already have their own queue/task systems — use this only if it fits your needs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

Factory creates queue adapters based on configuration

func NewDefaultFactory

func NewDefaultFactory() *Factory

NewDefaultFactory creates a factory with default configuration

func NewFactory

func NewFactory(config shared.QueueConfig) *Factory

NewFactory creates a new queue factory with given config

func (*Factory) Create

func (f *Factory) Create(queueType string) (port.QueuePort, error)

Create returns a QueuePort implementation based on factory configuration Supported types: "memory", "redis"

Directories

Path Synopsis
Package memory provides an in-memory priority queue with worker pools, circuit breaker, and backpressure handling.
Package memory provides an in-memory priority queue with worker pools, circuit breaker, and backpressure handling.
Package redis provides a Redis-backed queue adapter with priority routing and distributed worker support.
Package redis provides a Redis-backed queue adapter with priority routing and distributed worker support.
Package shared provides shared types and utilities for queue adapters including configuration, backpressure, circuit breaker, and priority routing.
Package shared provides shared types and utilities for queue adapters including configuration, backpressure, circuit breaker, and priority routing.

Jump to

Keyboard shortcuts

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