logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Const key value
pub mod id;
mod portmap;
use std::collections::HashMap;

use once_cell::sync::Lazy;

/// The know port of name in hash
#[derive(Debug)] 
pub struct Data {
    /// The know port of name in hash
    pub portmap: HashMap<u16, &'static str>,
}
/// Static data api 
pub static DATA: Lazy<Data> = Lazy::new(|| Data {
    portmap: portmap::get_tcp_portmap(),
});