user-service 0.4.1

A user management microservice.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use user_client::*;

pub fn client() -> Client {
    let port = std::env::var("PORT")
        .expect("Envrionment variable \"PORT\" not set")
        .parse::<u16>()
        .expect("Environment variable \"PORT\" must be of type u16");

    let host: String = format!("http://127.0.0.1:{}", port);

    Client::new(host)
}