vernemqtt

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWebhooks

func InitWebhooks(config configuration.Config, connector *platform_connector_lib.Connector, logger connectionlog.Logger, handlers []handler.Handler, connectionLimit *connectionlimit.ConnectionLimitHandler) *http.Server

Types

type DisconnectWebhookMsg

type DisconnectWebhookMsg struct {
	ClientId string `json:"client_id"`
}

type LoginWebhookMsg

type LoginWebhookMsg struct {
	Username     string `json:"username"`
	Password     string `json:"password"`
	ClientId     string `json:"client_id"`
	CleanSession bool   `json:"clean_session"` //v4
	CleanStart   bool   `json:"clean_start"`   //v5
}

type OnlineWebhookMsg

type OnlineWebhookMsg struct {
	ClientId string `json:"client_id"`
}

type PublishWebhookMsg

type PublishWebhookMsg struct {
	Username string `json:"username"`
	ClientId string `json:"client_id"`
	Topic    string `json:"topic"`
	Payload  string `json:"payload"`
	Qos      int    `json:"qos"`
}

type SubscribeWebhookMsg

type SubscribeWebhookMsg struct {
	Username string            `json:"username"`
	ClientId string            `json:"client_id"`
	Topics   []WebhookmsgTopic `json:"topics"`
}

type UnsubscribeWebhookMsg

type UnsubscribeWebhookMsg struct {
	Username string   `json:"username"`
	Topics   []string `json:"topics"`
}

type WebhookmsgTopic

type WebhookmsgTopic struct {
	Topic string `json:"topic"`
	Qos   int64  `json:"qos"`
}

Jump to

Keyboard shortcuts

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