memory

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 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 MemoryStore

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

MemoryStore is intended for use in test suites. No data is persisted, so as soon as the process exits all the tasks vanish It's written for simplicity over efficiency, so don't expect it to be performant

func (*MemoryStore) Disconnect

func (this *MemoryStore) Disconnect() error

func (MemoryStore) Healthy

func (this MemoryStore) Healthy(ctx context.Context) error

func (*MemoryStore) Init

func (this *MemoryStore) Init(queues []string) error

func (MemoryStore) MaxConcurrentDrainWorkers added in v3.0.9

func (this MemoryStore) MaxConcurrentDrainWorkers() int

func (*MemoryStore) Pop

func (this *MemoryStore) Pop(ctx context.Context, queueName string, handler types.Handler) error

func (*MemoryStore) Publish

func (this *MemoryStore) Publish(ctx context.Context, queueName string, payload *types.Task) (err error)

func (*MemoryStore) Purge

func (this *MemoryStore) Purge(ctx context.Context, queueName string) error

func (*MemoryStore) PurgeMatching

func (this *MemoryStore) PurgeMatching(ctx context.Context, queueName, substr string) error

func (*MemoryStore) Subscribe

func (this *MemoryStore) Subscribe(ctx context.Context, queueName string, handler types.Handler) error

func (*MemoryStore) Suck added in v3.0.9

func (this *MemoryStore) Suck(ctx context.Context, queueName string, handler types.Handler) error

Jump to

Keyboard shortcuts

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