use anyhow::Result;
use netxserver::prelude::*;
#[build]
pub trait IProxy {
#[tag(2001)]
async fn get_server_id(&self) -> Result<usize>;
#[tag(2010)]
async fn broadcast_to_all_users(&self, data: &[u8]);
#[tag(2011)]
async fn broadcast_to_account_id(&self, account_id: i32, data: &[u8]);
#[tag(2012)]
async fn broadcast_to_server_id(&self, server_id: i32, data: &[u8]);
#[tag(2013)]
async fn broadcast_to_server_id_and_account_id(
&self,
server_id: i32,
account_id: i32,
data: &[u8],
);
#[tag(2020)]
async fn send_to_token(&self, token: u64, data: &[u8]);
}