Expose node list event

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/1/head
trivernis 4 years ago
parent eec5e698d3
commit a8900d5246
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,7 +1,7 @@
[package]
name = "vented"
description = "Event driven encrypted tcp communicaton"
version = "0.6.0"
version = "0.6.1"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"
readme = "README.md"

@ -17,7 +17,7 @@ pub(crate) const REDIRECT_CONFIRM_EVENT: &str = "conn:redirect_confirm";
pub(crate) const REDIRECT_FAIL_EVENT: &str = "conn:redirect_failed";
pub(crate) const REDIRECT_REDIRECTED_EVENT: &str = "conn:redirect_redirected";
pub(crate) const NODE_LIST_REQUEST_EVENT: &str = "conn:node_list_request";
pub(crate) const NODE_LIST_EVENT: &str = "conn:node_list";
const NODE_LIST_EVENT: &str = "conn:node_list";
pub const READY_EVENT: &str = "server:ready";
@ -83,12 +83,12 @@ pub(crate) struct RedirectResponsePayload {
}
#[derive(Serialize, Deserialize)]
pub(crate) struct NodeListPayload {
pub struct NodeListPayload {
pub nodes: Vec<NodeListElement>,
}
#[derive(Serialize, Deserialize)]
pub(crate) struct NodeListElement {
pub struct NodeListElement {
id: String,
public_key: [u8; 32],
address: Option<String>,

Loading…
Cancel
Save