Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Xu-Mj/sandcat-backend
/ functions
Functions
492 in github.com/Xu-Mj/sandcat-backend
⨍
Functions
492
◇
Types & classes
237
Function
get_apply_list_by_user_id
获取好友申请列表
api/src/handlers/friends/friend_handlers.rs:39
Function
get_avatar_by_name
( State(state): State<AppState>, PathExtractor(filename): PathExtractor<String>, )
api/src/handlers/files/file.rs:46
Function
get_channel_with_config
( config: &Config, service_name: impl ToString, protocol: impl ToString, )
utils/src/lib.rs:124
Function
get_channel_with_register
( register: Arc<dyn ServiceRegister>, service_name: impl ToString, protocol: impl ToString, )
utils/src/lib.rs:143
Function
get_file_by_name
( State(state): State<AppState>, PathExtractor(filename): PathExtractor<String>, )
api/src/handlers/files/file.rs:33
Function
get_friend_groups
( State(app_state): State<AppState>, PathWithAuthExtractor(id): PathWithAuthExtractor<String>, )
api/src/handlers/friends/friend_handlers.rs:225
Function
get_friend_privacy
( State(app_state): State<AppState>, PathWithAuthExtractor((user_id, friend_id)): PathWithAuthExtracto
api/src/handlers/friends/friend_handlers.rs:330
Function
get_friend_tags
( State(app_state): State<AppState>, PathWithAuthExtractor(id): PathWithAuthExtractor<String>, )
api/src/handlers/friends/friend_handlers.rs:278
Function
get_friends_list_by_user_id
( State(app_state): State<AppState>, PathWithAuthExtractor((user_id, offline_time)): PathWithAuthExtra
api/src/handlers/friends/friend_handlers.rs:21
Function
get_group
get group information need user id and group id if user is not in the group, return error
api/src/handlers/groups/group_handlers.rs:21
Function
get_group_and_members
( State(app_state): State<AppState>, PathWithAuthExtractor((user_id, group_id)): PathWithAuthExtractor
api/src/handlers/groups/group_handlers.rs:35
Function
get_group_announcements
( State(app_state): State<AppState>, PathWithAuthExtractor(group_id): PathWithAuthExtractor<String>, )
api/src/handlers/groups/group_handlers.rs:523
Method
get_group_by_id
(&self, group_id: &str)
db/src/postgres/group.rs:226
Function
get_group_categories
( State(app_state): State<AppState>, )
api/src/handlers/groups/group_handlers.rs:313
Function
get_group_files
( State(app_state): State<AppState>, PathWithAuthExtractor(group_id): PathWithAuthExtractor<String>, )
api/src/handlers/groups/group_handlers.rs:358
Function
get_group_members
( State(app_state): State<AppState>, JsonWithAuthExtractor(req): JsonWithAuthExtractor<GetMemberReq>,
api/src/handlers/groups/group_handlers.rs:51
Function
get_group_muted_members
( State(app_state): State<AppState>, PathWithAuthExtractor(group_id): PathWithAuthExtractor<String>, )
api/src/handlers/groups/group_handlers.rs:474
Function
get_group_polls
( State(app_state): State<AppState>, PathWithAuthExtractor(group_id): PathWithAuthExtractor<String>, )
api/src/handlers/groups/group_handlers.rs:421
Function
get_host_name
get host name
utils/src/lib.rs:34
Function
get_interaction_stats
( State(app_state): State<AppState>, PathWithAuthExtractor((user_id, friend_id)): PathWithAuthExtracto
api/src/handlers/friends/friend_handlers.rs:373
Method
get_messages
(&self, user_id: &str, start: i64, end: i64)
db/src/mongodb/sharded_message.rs:481
Method
get_messages
(&self, user_id: &str, start: i64, end: i64)
db/src/mongodb/message.rs:159
Method
get_messages_stream
( &self, user_id: &str, start: i64, end: i64, )
db/src/mongodb/sharded_message.rs:388
Method
get_messages_stream
( &self, user_id: &str, start: i64, end: i64, )
db/src/mongodb/message.rs:122
Function
get_poll_details
( State(app_state): State<AppState>, PathWithAuthExtractor(poll_id): PathWithAuthExtractor<String>, )
api/src/handlers/groups/group_handlers.rs:429
Function
get_rpc_channel_by_name
( config: &Config, name: &str, protocol: &str, )
utils/src/lib.rs:42
Method
get_send_to_db_flag
(msg_type: &MsgType)
msg_server/src/consumer.rs:325
Function
get_seq
( State(state): State<AppState>, PathWithAuthExtractor(user_id): PathWithAuthExtractor<String>, )
api/src/handlers/messages/msg_handlers.rs:69
Method
get_seq
(&self, user_id: &str)
cache/src/redis/mod.rs:176
Method
get_state
获取当前连接状态
msg_gateway/src/ws_server.rs:378
Function
get_timestamp_ms
辅助函数:获取毫秒级时间戳
db/src/mongodb/sharded_message.rs:985
Function
get_user_by_id
( State(app_state): State<AppState>, PathExtractor(id): PathExtractor<String>, )
api/src/handlers/users/user_handlers.rs:105
Function
github_callback
( Query(auth): Query<AuthResp>, ConnectInfo(addr): ConnectInfo<SocketAddr>, State(state): State<Ap
api/src/handlers/users/oauth2.rs:55
Function
github_login
(State(state): State<AppState>)
api/src/handlers/users/oauth2.rs:27
Function
google_callback
( Query(auth): Query<AuthResp>, State(state): State<AppState>, )
api/src/handlers/users/oauth2.rs:99
Function
google_login
(State(state): State<AppState>)
api/src/handlers/users/oauth2.rs:93
Method
group_script_load
(client: &redis::Client)
cache/src/redis/mod.rs:95
Method
handle_group_message
( db: Arc<DbRepo>, msg_box: Arc<dyn MsgRecBoxRepo>, message: Msg, need_to_hist
msg_server/src/consumer.rs:418
Method
handle_message
( db: Arc<DbRepo>, msg_box: Arc<dyn MsgRecBoxRepo>, message: Msg, need_to_hist
msg_server/src/consumer.rs:374
Method
internal
(error: impl StdError + 'static + Send + Sync)
abi/src/errors/mod.rs:94
Method
internal_box
(error: Box<dyn StdError + 'static + Send + Sync>)
abi/src/errors/mod.rs:85
Method
internal_with_details
(details: impl Into<String>)
abi/src/errors/mod.rs:112
Function
invite_new_members
( State(app_state): State<AppState>, JsonWithAuthExtractor(invitation): JsonWithAuthExtractor<GroupInv
api/src/handlers/groups/group_handlers.rs:123
Function
it_works
()
utils/src/sqlx_tester/mod.rs:112
Function
login
( State(app_state): State<AppState>, ConnectInfo(addr): ConnectInfo<SocketAddr>, JsonExtractor(mut
api/src/handlers/users/user_handlers.rs:137
Function
logout
( State(app_state): State<AppState>, PathExtractor(uuid): PathExtractor<String>, )
api/src/handlers/users/user_handlers.rs:129
Function
main
()
msg_gateway/src/main.rs:7
Function
main
()
abi/build.rs:54
Function
main
()
oss/src/main.rs:1
Function
main
()
cmd/src/main.rs:24
Function
main
()
api/src/main.rs:7
Function
main
()
msg_server/src/main.rs:8
Function
main
()
db/src/main.rs:7
Function
main
()
db/src/benchmarks/benchmark_sharding.rs:38
Function
manage_friend_tags
( State(app_state): State<AppState>, JsonWithAuthExtractor(req): JsonWithAuthExtractor<ManageFriendTag
api/src/handlers/friends/friend_handlers.rs:287
Method
max_decoding_message_size
(mut self, limit: usize)
abi/src/pb/message.rs:1935
Method
max_encoding_message_size
(mut self, limit: usize)
abi/src/pb/message.rs:1943
Function
modify_pwd
( State(app_state): State<AppState>, JsonExtractor(mut req): JsonExtractor<ModifyPwdRequest>, )
api/src/handlers/users/user_handlers.rs:155
Function
mongodb_insert_and_batch_delete_and_get_should_works
()
db/src/mongodb/message.rs:378
Function
mongodb_insert_and_delete_and_get_works
()
db/src/mongodb/message.rs:339
Function
mongodb_insert_and_get_works
()
db/src/mongodb/message.rs:327
Function
mute_group_member
新增 - 群组禁言相关
api/src/handlers/groups/group_handlers.rs:438
Method
n
(channel: LbWithServiceDiscovery)
utils/src/client_factory.rs:11
Method
new
(client: redis::Client)
cache/src/redis/mod.rs:41
Method
new
创建新的任务集合
msg_gateway/src/ws_server.rs:99
Method
new
(manager: Manager)
msg_gateway/src/rpc.rs:22
Method
new
(tx: mpsc::Sender<Msg>, config: &Config)
msg_gateway/src/manager.rs:32
Method
new
(service_center: Arc<dyn ServiceRegister>, service_name: String)
utils/src/lib.rs:116
Method
new
( host: impl Into<String>, port: u16, user: impl Into<String>, password: impl
utils/src/mongodb_tester/mod.rs:15
Method
new
( host: impl Into<String>, port: u16, user: impl Into<String>, password: impl
utils/src/sqlx_tester/mod.rs:17
Method
new
( service_center: Fetcher, dis_interval: tokio::time::Duration, sender: mpsc::Sender<C
utils/src/service_discovery/tonic_service_discovery.rs:44
Method
new
(group_id: String)
abi/src/types/group.rs:14
Method
new
(user_id: String, group_id: String)
abi/src/types/msg.rs:276
Method
new
( kind: ErrorKind, details: impl Into<String>, source: impl StdError + 'static + Send
abi/src/errors/mod.rs:54
Method
new
(inner: T)
abi/src/pb/message.rs:1890
Method
new
(config: &Config)
oss/src/client.rs:21
Method
new
创建新的消息迁移器
cmd/src/migrate.rs:28
Method
new
(config: &Config)
api/src/lib.rs:46
Method
new
(sub: String)
api/src/handlers/users/mod.rs:72
Method
new
( service_name: String, lb_type: impl Into<LoadBalanceStrategyType>, service_register:
api/src/api_utils/lb/mod.rs:29
Method
new
()
api/src/api_utils/lb/strategy.rs:61
Method
new
(kafka: FutureProducer, topic: String)
msg_server/src/productor.rs:24
Method
new
(config: &Config)
msg_server/src/consumer.rs:33
Method
new
(config: &Config)
msg_server/src/pusher/service.rs:29
Method
new
(config: &Config)
db/src/lib.rs:36
Method
new
创建新的混合分片消息存储
db/src/mongodb/sharded_message.rs:39
Method
new
(db: Database)
db/src/mongodb/message.rs:35
Method
new
(pool: PgPool)
db/src/postgres/group.rs:22
Method
new
(pool: PgPool)
db/src/postgres/friend.rs:20
Method
new
(pool: PgPool, init_max_seq: i32)
db/src/postgres/user.rs:17
Method
new
(pool: PgPool, seq_step: i32)
db/src/postgres/seq.rs:17
Method
new
(pool: PgPool)
db/src/postgres/message.rs:15
Method
new_with_friend_del
(sender_id: String, receiver_id: String)
abi/src/types/msg.rs:53
Method
new_with_friend_ship_req
( sender_id: String, receiver_id: String, fs: Vec<u8>, send_seq: i64, )
abi/src/types/msg.rs:65
Method
new_with_friend_ship_resp
(receiver_id: String, fs: Vec<u8>, send_seq: i64)
abi/src/types/msg.rs:84
Method
new_with_group_announcement
群组公告消息
abi/src/types/msg.rs:256
Method
new_with_group_file
群组文件消息
abi/src/types/msg.rs:199
Method
new_with_group_invitation
( sender_id: String, receiver_id: String, send_seq: i64, invitation: Vec<u8>,
abi/src/types/msg.rs:118
Method
new_with_group_invite_new
( sender_id: String, receiver_id: String, send_seq: i64, invitation: Vec<u8>,
abi/src/types/msg.rs:138
Method
new_with_group_mute
群组禁言消息
abi/src/types/msg.rs:237
← previous
next →
301–400 of 492, ranked by callers