Documentation ¶
Index ¶
- type FakeByteEmitter
- type FakeEventEmitter
- func (f *FakeEventEmitter) Close()
- func (f *FakeEventEmitter) Emit(e events.Event) error
- func (f *FakeEventEmitter) EmitEnvelope(e *events.Envelope) error
- func (f *FakeEventEmitter) GetEnvelopes() (envelopes []*events.Envelope)
- func (f *FakeEventEmitter) GetEvents() []events.Event
- func (f *FakeEventEmitter) GetMessages() (messages []Message)
- func (f *FakeEventEmitter) IsClosed() bool
- func (f *FakeEventEmitter) Origin() string
- func (f *FakeEventEmitter) Reset()
- type Message
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 sync.RWMutex // contains filtered or unexported fields }
func NewFakeEventEmitter ¶
func NewFakeEventEmitter(origin string) *FakeEventEmitter
func (*FakeEventEmitter) Close ¶
func (f *FakeEventEmitter) Close()
func (*FakeEventEmitter) EmitEnvelope ¶
func (f *FakeEventEmitter) EmitEnvelope(e *events.Envelope) error
func (*FakeEventEmitter) GetEnvelopes ¶
func (f *FakeEventEmitter) GetEnvelopes() (envelopes []*events.Envelope)
func (*FakeEventEmitter) GetEvents ¶
func (f *FakeEventEmitter) GetEvents() []events.Event
func (*FakeEventEmitter) GetMessages ¶
func (f *FakeEventEmitter) GetMessages() (messages []Message)
func (*FakeEventEmitter) IsClosed ¶
func (f *FakeEventEmitter) IsClosed() bool
func (*FakeEventEmitter) Origin ¶
func (f *FakeEventEmitter) Origin() string
func (*FakeEventEmitter) Reset ¶
func (f *FakeEventEmitter) Reset()
Click to show internal directories.
Click to hide internal directories.