packets

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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 Connect

type Connect struct {
	ClientId string
}

func (*Connect) Decode

func (c *Connect) Decode(data []byte) error

func (*Connect) Encode

func (c *Connect) Encode() []byte

type Disconnect

type Disconnect struct {
	ClientId string
}

func (*Disconnect) Decode

func (c *Disconnect) Decode(data []byte) error

func (*Disconnect) Encode

func (c *Disconnect) Encode() []byte

type Publish

type Publish struct {
	Topic   string
	Payload []byte
	Retain  bool
	Qos     byte
}

func (*Publish) Decode

func (p *Publish) Decode(data []byte) error

func (*Publish) Encode

func (p *Publish) Encode() []byte

Jump to

Keyboard shortcuts

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