cmdb-ip-mapping

Crates.io Released API docs MIT licensed License

Depend on rlink. Get appuk by ip from cmdb in rlink task.

Example

yaml [dependencies] cmdb-ip-mapping = "0.1"

``` rust let ip = "10.99.5.49"; let ipmappingurl = "http://ipappukmapping.17usoft.com/mapping/all";

    load_ip_mapping_task(ip_mapping_url);

    let option = get_ip_mapping_config(ip);
    assert!(option.is_some());
    assert!(option.unwrap().app_uk.eq("dssteamyyjk.java.ip.appuk.mapping"))

```