testqueue

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (*PassthroughQueue) Pass

func (q *PassthroughQueue) Pass(msg *message.Message) error

Pass passes a message through the queue

Jump to

Keyboard shortcuts

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