refactor!: add ws endpoint, storage trait

This commit is contained in:
2026-02-09 23:56:10 -08:00
parent c4e198de83
commit b614def39d
18 changed files with 383 additions and 117 deletions

10
registry/utils/peer.rs Normal file
View 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>,
}