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 // contains filtered or unexported fields }
func NewFakeEventEmitter ¶
func NewFakeEventEmitter(origin string) *FakeEventEmitter
func (*FakeEventEmitter) Close ¶
func (f *FakeEventEmitter) Close()
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
Click to show internal directories.
Click to hide internal directories.