Crates.io | ops |
lib.rs | ops |
version | 0.6.0 |
source | src |
created_at | 2020-05-31 11:40:28.988565 |
updated_at | 2021-06-28 19:54:39.796495 |
description | Adds operational endpoints to your application |
homepage | |
repository | https://github.com/utilitywarehouse/rust-ops |
max_upload_size | |
id | 248093 |
size | 66,540 |
Rust implementation of operational-endpoints-spec making it easy to add the standard endpoints to your application.
use ops::{StatusBuilder, server};
#[tokio::main]
async fn main() {
let status = StatusBuilder::always("my app", "a description");
let server = server("0.0.0.0:3000".parse().unwrap(), status);
server.await.unwrap();
}
See the examples folder for runnable examples.
Licensed under either of:
at your option.