e_libscanner/data/
mod.rs

1/// Const key value
2pub mod id;
3mod portmap;
4use std::collections::HashMap;
5
6use once_cell::sync::Lazy;
7
8/// The know port of name in hash
9#[derive(Debug)] 
10pub struct Data {
11    /// The know port of name in hash
12    pub portmap: HashMap<u16, &'static str>,
13}
14/// Static data api 
15pub static DATA: Lazy<Data> = Lazy::new(|| Data {
16    portmap: portmap::get_tcp_portmap(),
17});