Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ListenForTunnelCmd = &cobra.Command{ Use: "listen-for-tunnel", Short: "Listens for a tunnel creation notification", Long: `Listens for a tunnel creation notification`, 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 := ListenForTunnel(thingName, keypair, endpoint); err != nil { log.Fatal(err) } }, }
ListenForTunnelCmd listens for a new tunnel to be requested
Functions ¶
func ListenForTunnel ¶
ListenForTunnel listens on the MQTT Tunnel Topic and sets up the tunnel once a notify message is received
func StartLocalProxy ¶
func StartLocalProxy(params ProxyParams) error
StartLocalProxy starts a local proxy to the AWS IoT MQTT endpoint
Types ¶
Click to show internal directories.
Click to hide internal directories.