Crate lib_ngrok

Source
Expand description

Easily download and run an ngrok binary.

§Examples

use lib_ngrok::download;

async fn download() -> Result<(), anyhow::Error> {
    let ngrok_path = &Path::new("ngrok");
    download::bin(ngrok_path).await?;
}

Modules§

download
url
Download URLs for ngrok per-architecture

Enums§

RunError
Errors that can occur when running an ngrok binary.

Functions§

run
Runs an ngrok binary with an authentication token.