test

package
v0.0.0-...-1f1d11f Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventManagerMock

type EventManagerMock struct {
	OnCount     int
	EmitCount   int
	RemoveCount int
	LastEvent   events.EventName
}

func (*EventManagerMock) Emit

func (em *EventManagerMock) Emit(topic events.EventName)

func (*EventManagerMock) On

func (*EventManagerMock) Remove

func (em *EventManagerMock) Remove(idToRemove events.RegistrationId)

type MessageMock

type MessageMock struct {
	PayloadData []byte
	TopicData   string
}

func (*MessageMock) Ack

func (m *MessageMock) Ack()

func (*MessageMock) Duplicate

func (*MessageMock) Duplicate() bool

func (*MessageMock) MessageID

func (*MessageMock) MessageID() uint16

func (*MessageMock) Payload

func (m *MessageMock) Payload() []byte

func (*MessageMock) Qos

func (*MessageMock) Qos() byte

func (*MessageMock) Retained

func (*MessageMock) Retained() bool

func (*MessageMock) Topic

func (m *MessageMock) Topic() string

Jump to

Keyboard shortcuts

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