From 09bb9e12fcd0336af2a3a9f9aacc6384ac004943 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Sat, 20 Jun 2020 10:09:12 +0100 Subject: move package mqtt to package catbus, make more convenient --- mqtt/mqtt.go | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 mqtt/mqtt.go (limited to 'mqtt/mqtt.go') 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) -} -- cgit v1.2.3