mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 10:14:35 +00:00
use workspace, prepare for config server and gui (#48)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
tonic::include_proto!("cli"); // The string specified here must match the proto package name
|
||||
@@ -0,0 +1,4 @@
|
||||
pub mod cli;
|
||||
pub use cli::*;
|
||||
|
||||
pub mod peer;
|
||||
@@ -0,0 +1,22 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]
|
||||
pub struct GetIpListResponse {
|
||||
pub public_ipv4: String,
|
||||
pub interface_ipv4s: Vec<String>,
|
||||
pub public_ipv6: String,
|
||||
pub interface_ipv6s: Vec<String>,
|
||||
pub listeners: Vec<url::Url>,
|
||||
}
|
||||
|
||||
impl GetIpListResponse {
|
||||
pub fn new() -> Self {
|
||||
GetIpListResponse {
|
||||
public_ipv4: "".to_string(),
|
||||
interface_ipv4s: vec![],
|
||||
public_ipv6: "".to_string(),
|
||||
interface_ipv6s: vec![],
|
||||
listeners: vec![],
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user