Skip to content

mayakerostasia/mk-lib-bastion

Repository files navigation

bb-lib-bastion

Docker Rust Build

This project is a collection of Rust libraries and binaries. The main components of the project are:

bb-bin-monkey

Readme Cargo

bb-lib-base-api

bb-lib-config

bb-lib-event [unimplimented]

Cargo

bb-lib-http-listener

provides http endpoints healthz and readyz

use bb_lib_http_listener::Server;

#[tokio::main]
async fn main() -> Result<(), Error> {
    let listener = Server::new("127.0.0.1:6060");
    let _: ! = listener.listen().await()?;
    Ok(())
}

bb-lib-nats-streams

Tools for sending and receiving requests across a nats messaging service
Cargo

bb-lib-reactor [this is an example repo]

Tower service creator
Cargo

bb-lib-surreal-client

Surreal Database Client and Storage tools
Cargo

bb-lib-tracing

Tracing instrumentation Cargo

Usage:

Initialize the tracing subscribers using the following function in a tokio runtime

// A tokio reactor must be enabled to initialize the tracing library
#[tokio::main]
async fn main() {
    let _otel_guard = bb_lib_tracing::initialize()?;
    // ... etc ... 
}

bump

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors