memory

package
v0.2.3-danish Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryStore

type InMemoryStore struct {
	Queue  map[string]*queue
	Config config.Config
	Logger logger.Logger
	// contains filtered or unexported fields
}

func NewInMemoryStore

func NewInMemoryStore(queueName string, cfg config.Config, logger logger.Logger) *InMemoryStore

func (*InMemoryStore) Ack

func (store *InMemoryStore) Ack(queueName string, payload string) error

func (*InMemoryStore) DequeueMetrics

func (store *InMemoryStore) DequeueMetrics(queueName string) (config.JobMetrics, error)

func (*InMemoryStore) EnqueueMetrics

func (store *InMemoryStore) EnqueueMetrics(metrics config.JobMetrics) error

func (*InMemoryStore) GetDbConnection

func (store *InMemoryStore) GetDbConnection() interface{}

func (*InMemoryStore) IsHealthy

func (store *InMemoryStore) IsHealthy() bool

func (*InMemoryStore) Pop

func (store *InMemoryStore) Pop(queueName string) (job.JobContext, error)

func (*InMemoryStore) Push

func (store *InMemoryStore) Push(queueName string, jb job.Job, delay ...time.Duration) error

func (*InMemoryStore) PushBatch

func (store *InMemoryStore) PushBatch(queueName string, jobs []job.Job, delay ...time.Duration) error

func (*InMemoryStore) Retry

func (store *InMemoryStore) Retry(j job.Job, delay time.Duration) error

func (*InMemoryStore) RetryJobWithMetadata

func (store *InMemoryStore) RetryJobWithMetadata(queueName string, rJob job.JobContext, delay ...time.Duration) error

Jump to

Keyboard shortcuts

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