Documentation ¶
Overview ¶
Package testqueue contains queue utilities for testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PassthroughQueue ¶
type PassthroughQueue struct {
// contains filtered or unexported fields
}
PassthroughQueue is a queue that passes messages through. It's only useful for testing.
func NewPassthroughQueue ¶
func NewPassthroughQueue(t *testing.T) *PassthroughQueue
NewPassthroughQueue creates a new PassthroughQueue
func (*PassthroughQueue) Close ¶
func (q *PassthroughQueue) Close() error
Close frees closes the channel used as queue.
func (*PassthroughQueue) GetQueue ¶
func (q *PassthroughQueue) GetQueue() <-chan *message.Message
GetQueue returns the queue
Click to show internal directories.
Click to hide internal directories.