Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckCmd = &cobra.Command{ Use: "check-mqtt", Short: "Checks if an MQTT connection can be established", Long: `Checks if an MQTT connectoin can be established with the provided certs`, Args: cobra.NoArgs, Run: func(cmd *cobra.Command, args []string) { if err := checkParameters(); err != nil { log.Fatal(err) } keypair := models.KeyPair{ PrivateKeyPath: privateKeyPath, CertificatePath: certificatePath, CACertificatePath: rootCAPath, } if _, err := MakeMQTTClient(keypair, endpoint, clientID); err != nil { log.Fatal(err) } log.Printf("MQTT connection established") }, }
CheckCmd checks if an MQTT connnection can be established
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.