queue

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package queue defines the shared task-queue vocabulary: the Task contract, the default channel, and the channel→subject mapping. The Queue interface itself is consumer-defined and lives in each service. The outbox-backed implementation lives in adapter/outbox_queue.

Index

Constants

View Source
const DefaultChannel = "default"

DefaultChannel is the channel used by Enqueue. Callers that do not care about channels and prioritization never name a channel; the transport layer routes them here.

Variables

This section is empty.

Functions

func Subject

func Subject(channel, name string) string

Subject composes the wire message queue subject for a task on a channel: queues.<channel>.<name>.

Types

type Task

type Task interface {
	Name() string
	Version() string
}

Task is the constraint for queueable point-to-point work units. A task names itself logically (e.g. "log-created-asset") and declares its schema version. The transport channel is an infrastructure concern composed at enqueue time and not tied to task itself.

Jump to

Keyboard shortcuts

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