mockproducer

package
v0.2.24-cluster Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProducer

type MockProducer struct {
	// contains filtered or unexported fields
}

MockProducer produces events for unit testing

func New

func New() *MockProducer

New returns a new MockProducer

func (*MockProducer) Close

func (c *MockProducer) Close()

Close closes the event producer

func (*MockProducer) ProduceEvent

func (c *MockProducer) ProduceEvent(event interface{})

ProduceEvent allows a unit test to send an event

func (*MockProducer) Register

func (c *MockProducer) Register(eventch chan<- interface{})

Register registers an event channel with the event relay

Jump to

Keyboard shortcuts

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