pkg

package
v0.0.0-...-edd4e79 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 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 Message

type Message interface {
	GetID() string
	GetPayload() []byte
	GetTopic() string
	GetQoS() byte
	Decode() packets.Packet
}

type Packet

type Packet struct {
	// contains filtered or unexported fields
}

func NewPacket

func NewPacket(id, topic string, pubPacket *packets.Publish) *Packet

func (*Packet) Decode

func (p *Packet) Decode() packets.Packet

func (*Packet) GetID

func (p *Packet) GetID() string

func (*Packet) GetPayload

func (p *Packet) GetPayload() []byte

func (*Packet) GetQoS

func (p *Packet) GetQoS() byte

func (*Packet) GetTopic

func (p *Packet) GetTopic() string

func (*Packet) PubPacket

func (p *Packet) PubPacket() *packets.Publish

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
proto

Jump to

Keyboard shortcuts

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