message

package
v0.0.0-...-d5ac831 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToPublish

func ToPublish(msg *Message, version packet.Version) *packet.Publish

Types

type Message

type Message struct {
	Dup      bool
	QoS      uint8
	Retained bool
	Topic    string
	Payload  []byte
	PacketId packet.Id

	ContentType            string
	CorrelationData        []byte
	MessageExpiry          uint32
	PayloadFormat          packet.PayloadFormat
	ResponseTopic          string
	SubscriptionIdentifier []uint32
}

func FromPublish

func FromPublish(publish *packet.Publish) *Message

func (*Message) Copy

func (m *Message) Copy() *Message

func (*Message) String

func (m *Message) String() string

func (*Message) TotalBytes

func (m *Message) TotalBytes(version packet.Version) uint32

TotalBytes return the publish packets total bytes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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