feat(account): add grpc to communicate with account server

This commit is contained in:
DJMrTV 2025-02-02 00:46:04 +01:00
commit cb6a6f9028
15 changed files with 797 additions and 30 deletions

8
src/grpc/mod.rs Normal file
View file

@ -0,0 +1,8 @@
use std::env;
use std::net::Ipv4Addr;
use once_cell::sync::Lazy;
use tonic::{Request, Status};
type InterceptorFunc = Box<(dyn Fn(Request<()>) -> Result<Request<()>, Status> + Send)>;
mod protobufs;
pub mod account;