sqlqueuecore

package module
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg queue.DatabaseConfig) (*databaseQueue, error)

func NewQueue

func NewQueue(driverName string, cfg ModuleConfig, opts ...queue.Option) (*queue.Queue, error)

NewQueue creates a high-level queue.Queue from the shared SQL implementation for a specific SQL driver name.

Types

type DatabaseConfig

type DatabaseConfig = queue.DatabaseConfig

DatabaseConfig configures the SQL-backed database q. @group Config

type ModuleConfig

type ModuleConfig struct {
	queueconfig.DriverBaseConfig
	DB                       *sql.DB
	DSN                      string
	ProcessingRecoveryGrace  time.Duration
	ProcessingLeaseNoTimeout time.Duration
}

ModuleConfig contains shared configuration fields used by the SQL dialect driver wrapper modules (mysqlqueue, postgresqueue, sqlitequeue).

Jump to

Keyboard shortcuts

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