Documentation ¶
Index ¶
- Constants
- func FirstN(s string, n int) string
- func GetTopicSubConfig(topic string) string
- func GetTopicSubDestinationConfig(topic string) (string, bool)
- func GetTopicSubDestinationStatus(topic string) (string, bool)
- func GetTopicSubStatus(topic string) string
- func MsgPubAdvInfo(name, info string) (string, string)
- func MsgPubAdvState(name string, isOnline bool) (string, string)
- func Start(config *Config, mqttSubMsgChannel chan<- Msg) chan<- Msg
- type Config
- type Msg
Constants ¶
View Source
const ( DefMqttClientId = "mqtt2ping_agent" // no longer than 23 characters DefBrokerURL = "tcp://broker.hivemq.com:1883" DefBrokerUser = "" DefBrokerPass = "" DefTopicPrefix = "mqtt2ping/" )
Variables ¶
This section is empty.
Functions ¶
func GetTopicSubConfig ¶
func GetTopicSubStatus ¶
func MsgPubAdvInfo ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.