fake

package
Version: v0.0.0-...-c259db3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2015 License: Apache-2.0, Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, 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 FakeByteEmitter

type FakeByteEmitter struct {
	ReturnError error
	Messages    [][]byte
	// contains filtered or unexported fields
}

func NewFakeByteEmitter

func NewFakeByteEmitter() *FakeByteEmitter

func (*FakeByteEmitter) Close

func (f *FakeByteEmitter) Close()

func (*FakeByteEmitter) Emit

func (f *FakeByteEmitter) Emit(data []byte) (err error)

func (*FakeByteEmitter) GetMessages

func (f *FakeByteEmitter) GetMessages() (messages [][]byte)

func (*FakeByteEmitter) IsClosed

func (f *FakeByteEmitter) IsClosed() bool

type FakeEventEmitter

type FakeEventEmitter struct {
	ReturnError error
	Messages    []envelope
	Origin      string

	sync.RWMutex
	// contains filtered or unexported fields
}

func NewFakeEventEmitter

func NewFakeEventEmitter(origin string) *FakeEventEmitter

func (*FakeEventEmitter) Close

func (f *FakeEventEmitter) Close()

func (*FakeEventEmitter) Emit

func (f *FakeEventEmitter) Emit(e events.Event) error

func (*FakeEventEmitter) GetEvents

func (f *FakeEventEmitter) GetEvents() []events.Event

func (*FakeEventEmitter) GetMessages

func (f *FakeEventEmitter) GetMessages() (messages []envelope)

func (*FakeEventEmitter) IsClosed

func (f *FakeEventEmitter) IsClosed() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL