diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-06-20 10:09:12 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-06-20 10:09:12 +0100 |
commit | 09bb9e12fcd0336af2a3a9f9aacc6384ac004943 (patch) | |
tree | 8f63a8fadcf3f823c86d06e29cc938065a345687 /mqtt | |
parent | d8d9b04ebbdfff0dd3d952d2658f117d47730c9d (diff) |
move package mqtt to package catbus, make more convenient
Diffstat (limited to 'mqtt')
-rw-r--r-- | mqtt/mqtt.go | 33 |
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) -} |