cmdb-ip-mapping

Crates.iocmdb-ip-mapping
lib.rscmdb-ip-mapping
version0.6.4
sourcesrc
created_at2021-04-13 02:50:37.533887
updated_at2021-08-24 06:31:11.392126
descriptionGet appuk by ip from cmdb in rlink task.
homepage
repositoryhttps://github.com/yuanyinyan/cmdb-ip-mapping.git
max_upload_size
id382661
size24,904
yuanyin (yuanyinyan)

documentation

README

cmdb-ip-mapping

Crates.io Released API docs MIT licensed License

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

Example

[dependencies]
cmdb-ip-mapping = "0.1"
        let ip = "10.99.5.49";
        let ip_mapping_url = "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"))
Commit count: 12

cargo fmt