north

Crates.ionorth
lib.rsnorth
version0.1.4
sourcesrc
created_at2022-08-25 21:20:29.852367
updated_at2023-07-25 23:27:03.070922
descriptionNorth Microservice Framework
homepagehttps://github.com/juicycleff/north-framework
repositoryhttps://github.com/juicycleff/north-framework
max_upload_size
id652430
size34,495
Rex Raphael (juicycleff)

documentation

https://docs.rs/north/

README

North Framework

A microservice framework

Getting Started

/// Entry into Example service
#[tokio::main]
pub async fn main() -> std::io::Result<()> {
    //#region Setup Server
    let north_app = power::<Api>()
        .graceful_shutdown()
        .address("localhost")
        .name("Example Service")
        .path_prefix("/api")
        .port("8080")
        .api(Api)
        .up();

    north_app.start().await
    //#endregion
}
Commit count: 70

cargo fmt