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
↓ 1 callers
Method
create_friend_tag
Friend Tags Management implementations
db/src/postgres/friend.rs:521
↓ 1 callers
Method
create_fs
(&self, fs: FsCreate)
db/src/postgres/friend.rs:27
↓ 1 callers
Method
create_group_category
( &self, req: &CreateGroupCategoryRequest, )
db/src/postgres/group.rs:394
↓ 1 callers
Method
create_group_with_members
(&self, group: &GroupCreate)
db/src/postgres/group.rs:108
↓ 1 callers
Method
create_poll
(&self, req: &CreatePollRequest)
db/src/postgres/group.rs:553
↓ 1 callers
Function
default_avatars
()
oss/src/lib.rs:27
↓ 1 callers
Method
del_register_code
(&self, email: &str)
cache/src/redis/mod.rs:374
↓ 1 callers
Method
delete_announcement
(&self, id: &str, user_id: &str)
db/src/postgres/group.rs:887
↓ 1 callers
Method
delete_friend
(&self, fs_id: &str, user_id: &str)
db/src/postgres/friend.rs:387
↓ 1 callers
Method
delete_friend_group
(&self, group_id: &str)
db/src/postgres/friend.rs:457
↓ 1 callers
Method
delete_friend_tag
(&self, tag_id: &str)
db/src/postgres/friend.rs:543
↓ 1 callers
Method
delete_group
(&self, group_id: &str, owner: &str)
db/src/postgres/group.rs:314
↓ 1 callers
Method
delete_group_category
(&self, id: &str)
db/src/postgres/group.rs:441
↓ 1 callers
Method
delete_group_file
(&self, file_id: &str, user_id: &str)
db/src/postgres/group.rs:494
↓ 1 callers
Method
delete_message
(&self, message_id: &str)
db/src/mongodb/sharded_message.rs:317
↓ 1 callers
Function
download_avatar
(url: &str, state: &AppState)
api/src/handlers/users/oauth2.rs:127
↓ 1 callers
Method
download_avatar
(&self, key: &str)
oss/src/client.rs:152
↓ 1 callers
Method
download_file
(&self, key: &str)
oss/src/client.rs:141
↓ 1 callers
Method
drop
(&mut self)
cache/src/redis/mod.rs:420
↓ 1 callers
Method
exit_group
(&self, user_id: &str, group_id: &str)
db/src/postgres/group.rs:286
↓ 1 callers
Function
file_routes
(state: AppState)
api/src/routes.rs:129
↓ 1 callers
Function
friend_routes
(state: AppState)
api/src/routes.rs:39
↓ 1 callers
Method
from
(value: String)
api/src/api_utils/lb/strategy.rs:34
↓ 1 callers
Function
generate_group_ids
(count: usize)
db/src/benchmarks/benchmark_sharding.rs:209
↓ 1 callers
Function
generate_user_ids
(count: usize, prefix: &str)
db/src/benchmarks/benchmark_sharding.rs:205
↓ 1 callers
Function
get_chan
(config: &Config, name: String)
utils/src/lib.rs:168
↓ 1 callers
Method
get_cur_seq
(&self, user_id: &str)
cache/src/redis/mod.rs:185
↓ 1 callers
Method
get_friend_groups
(&self, user_id: &str)
db/src/postgres/friend.rs:484
↓ 1 callers
Method
get_friend_list
(&self, user_id: &str, offline_time: i64)
db/src/postgres/friend.rs:229
↓ 1 callers
Method
get_friend_privacy
( &self, user_id: &str, friend_id: &str, )
db/src/postgres/friend.rs:705
↓ 1 callers
Method
get_friend_tags
(&self, user_id: &str)
db/src/postgres/friend.rs:562
↓ 1 callers
Method
get_group
(&self, user_id: &str, group_id: &str)
db/src/postgres/group.rs:28
↓ 1 callers
Method
get_group_and_members
( &self, user_id: &str, group_id: &str, )
db/src/postgres/group.rs:41
↓ 1 callers
Method
get_group_announcements
(&self, group_id: &str)
db/src/postgres/group.rs:916
↓ 1 callers
Method
get_group_categories
(&self)
db/src/postgres/group.rs:459
↓ 1 callers
Method
get_group_files
(&self, group_id: &str)
db/src/postgres/group.rs:525
↓ 1 callers
Method
get_group_muted_members
(&self, group_id: &str)
db/src/postgres/group.rs:831
↓ 1 callers
Method
get_group_polls
(&self, group_id: &str)
db/src/postgres/group.rs:682
↓ 1 callers
Method
get_interaction_stats
( &self, user_id: &str, friend_id: &str, )
db/src/postgres/friend.rs:759
↓ 1 callers
Method
get_max_seq
(&self)
db/src/postgres/seq.rs:61
↓ 1 callers
Method
get_members
( &self, user_id: &str, group_id: &str, mem_ids: Vec<String>, )
db/src/postgres/group.rs:72
↓ 1 callers
Method
get_members_id
query members id from cache if not found, query from db
msg_server/src/consumer.rs:241
↓ 1 callers
Method
get_msgs
( &self, user_id: &str, send_start: i64, send_end: i64, rec_start: i64
db/src/mongodb/message.rs:182
↓ 1 callers
Method
get_poll_details
(&self, poll_id: &str)
db/src/postgres/group.rs:695
↓ 1 callers
Method
get_send_seq
(&self, user_id: &str)
cache/src/redis/mod.rs:205
↓ 1 callers
Method
get_service
(&self)
api/src/api_utils/lb/mod.rs:47
↓ 1 callers
Function
get_strategy
(lb_type: LoadBalanceStrategyType)
api/src/api_utils/lb/strategy.rs:6
↓ 1 callers
Method
get_user_by_email
(&self, email: &str)
db/src/postgres/user.rs:98
↓ 1 callers
Function
group_routes
(state: AppState)
api/src/routes.rs:85
↓ 1 callers
Method
handle_group_seq
( &self, msg_type: &MsgType2, msg: &mut Msg, )
msg_server/src/consumer.rs:281
↓ 1 callers
Method
handle_msg
todo handle error for the task
msg_server/src/consumer.rs:100
↓ 1 callers
Method
handle_msg_read
(&self, msg: Msg)
msg_server/src/consumer.rs:273
↓ 1 callers
Method
handle_send_seq
(&self, user_id: &str)
msg_server/src/consumer.rs:256
↓ 1 callers
Method
incr_group_seq
(&self, mut members: Vec<String>)
cache/src/redis/mod.rs:261
↓ 1 callers
Method
increase_message_seq
(&self, user_id: &str)
msg_server/src/consumer.rs:265
↓ 1 callers
Method
index
(&self, service_count: usize)
api/src/api_utils/lb/strategy.rs:50
↓ 1 callers
Function
init_oauth2
(config: &Config)
api/src/lib.rs:95
↓ 1 callers
Method
initialize_system
初始化分片系统
db/src/mongodb/sharded_message.rs:64
↓ 1 callers
Method
invite_new_members
(&self, group: &GroupInviteNew)
db/src/postgres/group.rs:161
↓ 1 callers
Function
load_seq
缓存中设置一个标志,用来标识是否已经加载过用户的max_seq
cmd/src/load_seq.rs:5
↓ 1 callers
Method
migrate
开始迁移过程
cmd/src/migrate.rs:55
↓ 1 callers
Method
modify_pwd
(&self, user_id: &str, password: &str)
db/src/postgres/user.rs:215
↓ 1 callers
Method
msg_read
(&self, user_id: &str, msg_seq: &[i64])
db/src/mongodb/sharded_message.rs:640
↓ 1 callers
Method
msg_read
(&self, user_id: &str, msg_seq: &[i64])
db/src/mongodb/message.rs:240
↓ 1 callers
Function
msg_rec_box_cleaner
创建消息清理器,根据配置选择适当的实现
db/src/lib.rs:70
↓ 1 callers
Function
msg_routes
(state: AppState)
api/src/routes.rs:144
↓ 1 callers
Method
mute_group_member
(&self, req: &MuteGroupMemberRequest)
db/src/postgres/group.rs:704
↓ 1 callers
Function
oss
(config: &Config)
oss/src/lib.rs:23
↓ 1 callers
Function
parse_region
(region: &str)
api/src/api_utils/ip_region/mod.rs:4
↓ 1 callers
Method
pin_announcement
(&self, id: &str, is_pinned: bool)
db/src/postgres/group.rs:929
↓ 1 callers
Method
pool
(&self)
utils/src/sqlx_tester/mod.rs:77
↓ 1 callers
Method
process_message
(&mut self, message: &mut Msg)
msg_gateway/src/manager.rs:169
↓ 1 callers
Method
push_group_msg
(&self, msg: Msg, members: Vec<GroupMemSeq>)
msg_server/src/pusher/service.rs:150
↓ 1 callers
Function
push_service
(config: &Config)
msg_server/src/pusher/mod.rs:18
↓ 1 callers
Method
push_single_msg
(&self, request: Msg)
msg_server/src/pusher/service.rs:108
↓ 1 callers
Method
query_group_members_id_from_db
query members id from database and set it to cache
msg_server/src/consumer.rs:359
↓ 1 callers
Method
register
register client
msg_gateway/src/manager.rs:134
↓ 1 callers
Method
register_service
(config: &Config)
msg_gateway/src/ws_server.rs:386
↓ 1 callers
Function
register_user
(state: &AppState, email: String, access_token: &str)
api/src/handlers/users/oauth2.rs:141
↓ 1 callers
Method
remove_group_member_batch
( &self, group_id: &str, member_id: &[&str], )
cache/src/redis/mod.rs:337
↓ 1 callers
Method
remove_member
(&self, group_id: &str, user_id: &str, mem_ids: &[String])
db/src/postgres/group.rs:205
↓ 1 callers
Method
remove_tags_from_friend
( &self, user_id: &str, friend_id: &str, tag_ids: &[String], )
db/src/postgres/friend.rs:618
↓ 1 callers
Method
run
(&mut self, mut receiver: mpsc::Receiver<Msg>)
msg_gateway/src/manager.rs:156
↓ 1 callers
Function
run_migration
启动迁移过程
cmd/src/migrate.rs:201
↓ 1 callers
Method
save_group_msg
(&self, message: Msg, members: Vec<GroupMemSeq>)
db/src/mongodb/sharded_message.rs:271
↓ 1 callers
Method
save_max_seq_batch
update max_seq in batch
db/src/postgres/seq.rs:49
↓ 1 callers
Method
save_register_code
(&self, email: &str, code: &str)
cache/src/redis/mod.rs:355
↓ 1 callers
Method
schedule_collection_maintenance
设置定期检查和创建新集合的任务
db/src/mongodb/sharded_message.rs:184
↓ 1 callers
Method
search_user
not allow to use username
db/src/postgres/user.rs:107
↓ 1 callers
Method
send_group
(&self, obj_ids: Vec<GroupMemSeq>, mut msg: Msg)
msg_gateway/src/manager.rs:45
↓ 1 callers
Method
send_group_msg_to_user
( &self, request: Request<SendGroupMsgRequest>, )
msg_gateway/src/rpc.rs:84
↓ 1 callers
Method
send_msg
send message to mq generate msg id and send time
msg_server/src/productor.rs:122
↓ 1 callers
Method
send_msg_to_user
Send message to user pusher will procedure this to send message to user
msg_gateway/src/rpc.rs:70
↓ 1 callers
Method
send_rpc_message
(&self, message: Msg)
msg_gateway/src/manager.rs:204
↓ 1 callers
Method
server_url
(&self)
abi/src/config.rs:305
↓ 1 callers
Method
set_seq_loaded
(&self)
cache/src/redis/mod.rs:143
↓ 1 callers
Function
start_all
(config: Config)
cmd/src/main.rs:102
↓ 1 callers
Method
unmute_group_member
( &self, group_id: &str, user_id: &str, operator_id: &str, )
db/src/postgres/group.rs:782
↓ 1 callers
Method
unregister
(&mut self, id: String, platform: PlatformType)
msg_gateway/src/manager.rs:141
↓ 1 callers
Method
update
update the service address
api/src/api_utils/lb/mod.rs:67
← previous
next →
101–200 of 492, ranked by callers