Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeQueueWriter ¶
type FakeQueueWriter struct { EnqueueTaskRequests []*persistence.EnqueueTaskRequest EnqueueTaskErr error CreateQueueErr error }
FakeQueueWriter is a queues.QueueWriter which records the requests it receives and returns the provided errors.
func (*FakeQueueWriter) CreateQueue ¶
func (d *FakeQueueWriter) CreateQueue( context.Context, *persistence.CreateQueueRequest, ) (*persistence.CreateQueueResponse, error)
func (*FakeQueueWriter) EnqueueTask ¶
func (d *FakeQueueWriter) EnqueueTask( _ context.Context, request *persistence.EnqueueTaskRequest, ) (*persistence.EnqueueTaskResponse, error)
Click to show internal directories.
Click to hide internal directories.