testmessagebus

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TapeRecord added in v0.7.5

type TapeRecord struct {
	Message core.Message
	Reply   core.Reply
	Error   error
}

type TestMessageBus

type TestMessageBus struct {
	PulseStorage core.PulseStorage
	ReadingTape  []TapeRecord
	WritingTape  []TapeRecord
	// contains filtered or unexported fields
}

func NewTestMessageBus

func NewTestMessageBus(t *testing.T) *TestMessageBus

func (*TestMessageBus) MustRegister

func (mb *TestMessageBus) MustRegister(p core.MessageType, handler core.MessageHandler)

func (*TestMessageBus) NewPlayer added in v0.6.3

func (mb *TestMessageBus) NewPlayer(ctx context.Context, reader io.Reader) (core.MessageBus, error)

func (*TestMessageBus) NewRecorder added in v0.6.3

func (mb *TestMessageBus) NewRecorder(ctx context.Context, currentPulse core.Pulse) (core.MessageBus, error)

func (*TestMessageBus) OnPulse added in v0.7.5

func (mb *TestMessageBus) OnPulse(context.Context, core.Pulse) error

func (*TestMessageBus) ReRegister

func (mb *TestMessageBus) ReRegister(p core.MessageType, handler core.MessageHandler)

func (*TestMessageBus) Register

func (mb *TestMessageBus) Register(p core.MessageType, handler core.MessageHandler) error

func (*TestMessageBus) Send

func (*TestMessageBus) WriteTape added in v0.6.3

func (mb *TestMessageBus) WriteTape(ctx context.Context, writer io.Writer) error

Jump to

Keyboard shortcuts

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