Crates.io | north |
lib.rs | north |
version | 0.1.4 |
source | src |
created_at | 2022-08-25 21:20:29.852367 |
updated_at | 2023-07-25 23:27:03.070922 |
description | North Microservice Framework |
homepage | https://github.com/juicycleff/north-framework |
repository | https://github.com/juicycleff/north-framework |
max_upload_size | |
id | 652430 |
size | 34,495 |
A microservice framework
/// 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
}