refactor!: add ws endpoint, storage trait
This commit is contained in:
10
registry/utils/peer.rs
Normal file
10
registry/utils/peer.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use ipnetwork::IpNetwork;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct Peer {
|
||||
pub public_key: String,
|
||||
pub public_ip: String,
|
||||
pub port: String,
|
||||
pub allowed_ips: Vec<IpNetwork>,
|
||||
}
|
||||
Reference in New Issue
Block a user