types

package
v0.0.0-...-d99090c Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0, Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConsumer

type MockConsumer struct {
	// add a Mock object instance
	mock.Mock
	// other fields go here as normal
	TotalCount  int
	DoneChannel chan bool
}

A mock consumer consumes all incoming messages and sends a "done" signal on its DoneChannel once the expected number of messages has been consumed

func (*MockConsumer) ConsumeMessage

func (test *MockConsumer) ConsumeMessage(msg *message.DataMessage)

Jump to

Keyboard shortcuts

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