queueconfig

package
v0.3.0-20260807214055-... Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

README

Queue Config Extension

Vendor-agnostic interface for providing queue configurations.

Interfaces

Store

Provides queue configurations by name.

type Store interface {
    Get(ctx context.Context, name string) (entity.QueueConfig, error)
    List(ctx context.Context) ([]entity.QueueConfig, error)
}

Entities

Queue configuration entity lives in entity/queue_config.go:

  • QueueConfig — identifies a single submit queue (just its name); the registry of valid queue names. Behavioral/VCS config lives in the extension factory implementations, not here.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("queue config not found")

ErrNotFound is returned when the requested queue configuration does not exist.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Get returns the configuration for a named queue.
	// Returns ErrNotFound if no configuration exists for the given name.
	Get(ctx context.Context, name string) (entity.QueueConfig, error)

	// List returns all configured queues.
	List(ctx context.Context) ([]entity.QueueConfig, error)
}

Store loads and provides queue configurations. Implementations may read from YAML files, databases, remote services, etc.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package yaml provides a YAML-file-backed implementation of queueconfig.Store.
Package yaml provides a YAML-file-backed implementation of queueconfig.Store.

Jump to

Keyboard shortcuts

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