rust_raft 0.1.1

A rust implementation for raft.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use actix_web::{ web, App, HttpRequest, HttpResponse, HttpServer};



pub async fn with_param(
    req: HttpRequest,
    web::Path((name, )): web::Path<(String, )>,
) -> HttpResponse {
    println!("{:?}", req);

    HttpResponse::Ok()
        .content_type("text/plain")
        .body(format!("Hello {}!", name))
}