- add: handle channel list request

- add: handle server select request
- add: handle character list request stub
- add: start health check function for consul
This commit is contained in:
2024-12-13 04:40:07 -05:00
parent 1220d7a031
commit 38ea2ddb71
9 changed files with 133 additions and 49 deletions

View File

@@ -0,0 +1,21 @@
use crate::handlers::null_string::NullTerminatedString;
use crate::packet::{send_packet, Packet, PacketPayload};
use crate::packet_type::PacketType;
use crate::packets::cli_char_list_req::CliCharListReq;
use crate::packets::*;
use std::collections::HashMap;
use std::env;
use std::error::Error;
use std::sync::Arc;
use tokio::net::TcpStream;
use tokio::sync::Mutex;
use tonic::{Code, Status};
use tracing::{debug, error, info, warn};
use utils::service_discovery;
pub(crate) async fn handle_char_list_req(stream: &mut TcpStream, packet: Packet) -> Result<(), Box<dyn Error + Send + Sync>> {
let request = CliCharListReq::decode(packet.payload.as_slice());
debug!("{:?}", request);
Ok(())
}