mirror of https://github.com/CympleTech/ESSE.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
803 B
38 lines
803 B
use tdn::types::{ |
|
group::GroupId, |
|
primitive::{HandleResult, PeerAddr, Result}, |
|
rpc::RpcHandler, |
|
}; |
|
|
|
use crate::rpc::RpcState; |
|
|
|
pub(crate) mod assistant; |
|
pub(crate) mod chat; |
|
pub(crate) mod device; |
|
pub(crate) mod domain; |
|
pub(crate) mod file; |
|
|
|
pub(crate) fn app_rpc_inject(handler: &mut RpcHandler<RpcState>) { |
|
device::new_rpc_handler(handler); |
|
chat::new_rpc_handler(handler); |
|
assistant::new_rpc_handler(handler); |
|
domain::new_rpc_handler(handler); |
|
file::new_rpc_handler(handler); |
|
} |
|
|
|
pub(crate) fn _app_layer_handle( |
|
_gid: GroupId, |
|
_fgid: GroupId, |
|
_addr: PeerAddr, |
|
_data: Vec<u8>, |
|
) -> Result<HandleResult> { |
|
todo!() |
|
} |
|
|
|
pub(crate) fn _app_group_handle() -> Result<HandleResult> { |
|
todo!() |
|
} |
|
|
|
pub(crate) fn _app_migrate() -> Result<()> { |
|
todo!() |
|
}
|
|
|