Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeMessage ¶
type FakeMessage struct {
// contains filtered or unexported fields
}
FakeMessage implements Message interface.
func NewFakeMessage ¶
func NewFakeMessage(data []byte, acked, nacked bool) *FakeMessage
NewFakeMessage creates a new FakeMessage object.
func (*FakeMessage) Acked ¶
func (m *FakeMessage) Acked() bool
Acked returned true if the message has been acked.
func (*FakeMessage) Metadata ¶
func (m *FakeMessage) Metadata() map[string]string
Metadata returns the message'm payload.
func (*FakeMessage) Nacked ¶
func (m *FakeMessage) Nacked() bool
Nacked returned true if the message has been nacked.
type FakeSubscriber ¶
type FakeSubscriber struct { Close func() // contains filtered or unexported fields }
FakeSubscriber implements Subscriber interface for testing.
func NewFakeSubscriber ¶
func NewFakeSubscriber() *FakeSubscriber
NewFakeSubscriber creates a new FakeSubscriber instance.
func (*FakeSubscriber) AddMessage ¶
func (s *FakeSubscriber) AddMessage(m subee.Message)
AddMessage simulates receiving a new message.
func (*FakeSubscriber) CloseWithError ¶
func (s *FakeSubscriber) CloseWithError(err error)
CloseWithError closes Subscriber with an error.
Click to show internal directories.
Click to hide internal directories.