Skip to content

Rovel/errbit_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

errbit_rs

A Rust client for Errbit error catcher.

Usage

Add this to your Cargo.toml:

[dependencies]
errbit_rs = { path = "/home/rovel/dev/errbit_rs" }

Example:

use errbit_rs::ErrbitClient;
use std::error::Error;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let client = ErrbitClient::new("https://your-errbit-instance.com/api/v3/projects/YOUR_PROJECT_ID/notices", "YOUR_API_KEY");

    // Simulate an error
    let simulated_error = std::io::Error::new(std::io::ErrorKind::Other, "Simulated error");

    client.notify(&simulated_error).await?;

    Ok(())
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages