aboutsummaryrefslogtreecommitdiff
path: root/mqtt/mqtt.go
diff options
context:
space:
mode:
Diffstat (limited to 'mqtt/mqtt.go')
-rw-r--r--mqtt/mqtt.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/mqtt/mqtt.go b/mqtt/mqtt.go
deleted file mode 100644
index 025ebb4..0000000
--- a/mqtt/mqtt.go
+++ /dev/null
@@ -1,33 +0,0 @@
-// SPDX-FileCopyrightText: 2020 Ethel Morgan
-//
-// SPDX-License-Identifier: MIT
-
-// Package mqtt wraps Paho MQTT with a few quality-of-life features.
-package mqtt
-
-import (
- mqtt "github.com/eclipse/paho.mqtt.golang"
-)
-
-type (
- Client = mqtt.Client
- Message = mqtt.Message
- MessageHandler = mqtt.MessageHandler
-)
-
-const (
- AtMostOnce byte = iota
- AtLeastOnce
- ExactlyOnce
-)
-
-const (
- Retain = true
-)
-
-func NewClientOptions() *mqtt.ClientOptions {
- return mqtt.NewClientOptions()
-}
-func NewClient(opts *mqtt.ClientOptions) mqtt.Client {
- return mqtt.NewClient(opts)
-}