Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteBrokerData ¶
func WriteBrokerData(brokerData BrokerData, password string)
Types ¶
type Broker ¶
type Broker struct { Uuid string `json:"uuid"` Name string `json:"name"` ClientName string `json:"clientName"` Uri string `json:"uri"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` }
Stores the credentials required to connect to a MQTT broker
type BrokerData ¶
Storages the list of mqtt broker credentials
func AddBroker ¶
func AddBroker(brokerData BrokerData, broker Broker, password string) BrokerData
func ReadBrokerData ¶
func ReadBrokerData(password string) (BrokerData, error)
func RemoveBroker ¶
func RemoveBroker(brokerData BrokerData, broker Broker, password string) BrokerData
Click to show internal directories.
Click to hide internal directories.