events

package
v0.0.0-...-354bb4a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Conn = "conn"
View Source
const ConnAck = "connack"
View Source
const Pub = "pub"
View Source
const PubAck = "puback"
View Source
const PubComp = "pubcomp"
View Source
const PubRec = "pubrec"
View Source
const PubRel = "pubrel"
View Source
const Sub = "sub"
View Source
const SubAck = "suback"
View Source
const UnSubAck = "unsuback"
View Source
const Unsub = "unsub"

Variables

This section is empty.

Functions

func GetKindFromJson

func GetKindFromJson(data []byte) string

This doesn't parse the entire JSON, so it's (probably) fast

Types

type ConnAckEvent

type ConnAckEvent struct {
	Kind     string `json:"kind"`
	ClientId string `json:"client_id"`
	Success  bool   `json:"success"`
}

type ConnEvent

type ConnEvent struct {
	Kind     string `json:"kind"`
	ClientId string `json:"client_id"`
}

type PubAckEvent

type PubAckEvent struct {
	Kind     string `json:"kind"`
	PacketId string `json:"packet_id"`
	Success  bool   `json:"success"`
}

type PubCompEvent

type PubCompEvent struct {
	Kind     string `json:"kind"`
	PacketId string `json:"packet_id"`
	Success  bool   `json:"success"`
}

type PubEvent

type PubEvent struct {
	Kind     string `json:"kind"`
	PacketId string `json:"packet_id"`
	Message  string `json:"message"`
	Topic    string `json:"topic"`
	QoS      int    `json:"qos"`
	Retain   bool   `json:"retain"`
}

type PubRecEvent

type PubRecEvent struct {
	Kind     string `json:"kind"`
	PacketId string `json:"packet_id"`
}

type PubRelEvent

type PubRelEvent struct {
	Kind     string `json:"kind"`
	PacketId string `json:"packet_id"`
}

type SubAckEvent

type SubAckEvent struct {
	Kind    string `json:"kind"`
	Success bool   `json:"success"`
	Pattern string `json:"pattern"`
}

type SubEvent

type SubEvent struct {
	Kind    string `json:"kind"`
	Group   string `json:"group"`
	Pattern string `json:"pattern"`
}

type UnsubAckEvent

type UnsubAckEvent struct {
	Kind    string `json:"kind"`
	Success bool   `json:"success"`
	Pattern string `json:"pattern"`
}

type UnsubEvent

type UnsubEvent struct {
	Kind    string `json:"kind"`
	Pattern string `json:"pattern"`
}

Jump to

Keyboard shortcuts

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