Documentation ¶
Overview ¶
Package mem is a minimal reference implementation of backend.Interface suitable for use in tests.
Index ¶
- type Memory
- func (m *Memory) AckJobs(ctx context.Context, acks *resource.Acks) error
- func (m *Memory) BlockQueues(ctx context.Context, queues []string) error
- func (m *Memory) DeleteJobUniqueArgs(ctx context.Context, ids, keys []string) error
- func (m *Memory) DeleteQueues(ctx context.Context, queues []string) error
- func (m *Memory) DequeueJobs(ctx context.Context, limit int, opts *resource.JobListParams) (*resource.Jobs, error)
- func (m *Memory) EnqueueJobs(ctx context.Context, jobArgs *resource.Jobs) (*resource.Jobs, error)
- func (m *Memory) GetJobByID(ctx context.Context, id string, opts *resource.GetByIDOpts) (*resource.Job, error)
- func (m *Memory) GetJobUniqueArgs(ctx context.Context, keys []string) ([]string, bool, error)
- func (m *Memory) GetQueue(ctx context.Context, name string, opts *resource.GetByIDOpts) (*resource.Queue, error)
- func (m *Memory) ListJobs(ctx context.Context, limit int, opts *resource.JobListParams) (*resource.Jobs, error)
- func (m *Memory) ListQueues(ctx context.Context, opts *resource.QueueListParams) (*resource.Queues, error)
- func (m *Memory) PauseQueues(ctx context.Context, queues []string) error
- func (m *Memory) Ping(ctx context.Context) error
- func (m *Memory) Reset(ctx context.Context) error
- func (m *Memory) SaveQueue(ctx context.Context, queue *resource.Queue) (*resource.Queue, error)
- func (m *Memory) SetJobUniqueArgs(ctx context.Context, ids, keys []string) error
- func (m *Memory) Stats(ctx context.Context, queue string) (*resource.Stats, error)
- func (m *Memory) UnblockQueues(ctx context.Context, queues []string) error
- func (m *Memory) UnpauseQueues(ctx context.Context, queues []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is an in-memory backend intended to be a reference implementation used for testing. It is not safe to use in production.
func (*Memory) BlockQueues ¶ added in v0.4.0
func (*Memory) DeleteJobUniqueArgs ¶
func (*Memory) DeleteQueues ¶ added in v0.4.0
func (*Memory) DequeueJobs ¶
func (*Memory) EnqueueJobs ¶
func (*Memory) GetJobByID ¶
func (*Memory) GetJobUniqueArgs ¶
func (*Memory) ListQueues ¶
func (*Memory) PauseQueues ¶ added in v0.4.0
func (*Memory) SetJobUniqueArgs ¶
func (*Memory) UnblockQueues ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.