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
↓ 226 callers
Method
clone
(&self)
abi/src/pb/message.rs:2342
↓ 13 callers
Method
incr_send_seq
(&self, user_id: &str)
cache/src/redis/mod.rs:245
↓ 13 callers
Method
send_msg
( &mut self, request: impl tonic::IntoRequest<super::SendMsgRequest>, )
abi/src/pb/message.rs:2090
↓ 10 callers
Method
database
(&self)
utils/src/mongodb_tester/mod.rs:60
↓ 10 callers
Method
save_message
(&self, message: &Msg)
db/src/mongodb/message.rs:67
↓ 9 callers
Method
get_collection
获取指定集合
db/src/mongodb/sharded_message.rs:147
↓ 8 callers
Method
get_user_range
根据用户ID获取分片范围
db/src/mongodb/sharded_message.rs:177
↓ 7 callers
Function
start
(config: Config)
api/src/lib.rs:110
↓ 7 callers
Method
url
(&self, https: bool)
abi/src/config.rs:118
↓ 6 callers
Method
save_group_members_id
( &self, group_id: &str, members_id: Vec<String>, )
cache/src/redis/mod.rs:307
↓ 6 callers
Function
to_doc
(msg: &Msg)
db/src/mongodb/utils.rs:5
↓ 5 callers
Method
get_message
(&self, message_id: &str)
db/src/mongodb/message.rs:111
↓ 5 callers
Method
get_msgs
( &self, user_id: &str, send_start: i64, send_end: i64, rec_start: i64
db/src/mongodb/sharded_message.rs:534
↓ 5 callers
Function
get_test_msg
辅助函数:创建测试消息
db/src/mongodb/sharded_message.rs:993
↓ 5 callers
Function
msg_rec_box_repo
创建消息接收盒子仓库,根据配置选择适当的实现
db/src/lib.rs:56
↓ 5 callers
Function
url
(https: bool, host: &str, port: u16)
abi/src/config.rs:189
↓ 4 callers
Method
api_url
(&self, name: &str)
utils/src/service_register_center/consul/mod.rs:50
↓ 4 callers
Function
cache
(config: &Config)
cache/src/lib.rs:89
↓ 4 callers
Method
get_collection_name
根据时间和用户ID获取集合名
db/src/mongodb/sharded_message.rs:170
↓ 4 callers
Method
save_message
(&self, message: &Msg)
db/src/mongodb/sharded_message.rs:261
↓ 4 callers
Method
send_binary
(&self, msg: Vec<u8>)
msg_gateway/src/client.rs:30
↓ 3 callers
Method
broadcast
(&self, msg: Msg)
msg_gateway/src/manager.rs:220
↓ 3 callers
Method
create_error_message
(&self, message: &mut Msg, error: impl ToString)
msg_gateway/src/manager.rs:214
↓ 3 callers
Method
filter_by_name
(&self, name: &str)
utils/src/service_register_center/consul/mod.rs:99
↓ 3 callers
Function
generate_salt
()
utils/src/lib.rs:71
↓ 3 callers
Function
get_test_msg
(msg_id: String)
db/src/mongodb/message.rs:353
↓ 3 callers
Function
hash_password
(password: &[u8], salt: &str)
utils/src/lib.rs:75
↓ 3 callers
Function
print_benchmark_results
(count: usize, duration: Duration)
db/src/benchmarks/benchmark_sharding.rs:246
↓ 3 callers
Method
query_group_members_id
the group members id in redis is a set, with group_members_id:group_id as key
cache/src/redis/mod.rs:297
↓ 3 callers
Function
register_service
(config: &Config, com: Component)
utils/src/lib.rs:242
↓ 3 callers
Function
start
(config: &Config)
msg_server/src/lib.rs:9
↓ 3 callers
Method
upload_avatar
(&self, key: &str, content: Vec<u8>)
oss/src/client.rs:149
↓ 2 callers
Method
add_group_member_id
(&self, member_id: &str, group_id: &str)
cache/src/redis/mod.rs:323
↓ 2 callers
Function
benchmark_group_messages
( message_box: &Arc<dyn MsgRecBoxRepo>, count: usize, )
db/src/benchmarks/benchmark_sharding.rs:130
↓ 2 callers
Function
benchmark_single_messages
( message_box: &Arc<dyn MsgRecBoxRepo>, count: usize, )
db/src/benchmarks/benchmark_sharding.rs:94
↓ 2 callers
Function
clean_receive_box
(config: &Config)
db/src/lib.rs:80
↓ 2 callers
Function
create_test_message
( id: String, sender_id: String, receiver_id: String, time: i64, seq: i64, msg_type: M
db/src/benchmarks/benchmark_sharding.rs:213
↓ 2 callers
Method
create_user
(&self, user: User)
db/src/postgres/user.rs:24
↓ 2 callers
Method
decode
(&mut self)
api/src/handlers/users/mod.rs:47
↓ 2 callers
Method
del_group_members
(&self, group_id: &str)
cache/src/redis/mod.rs:348
↓ 2 callers
Method
delete
(&self, bucket: &str, key: &str)
oss/src/client.rs:216
↓ 2 callers
Method
delete_message
(&self, message_id: &str)
db/src/mongodb/message.rs:98
↓ 2 callers
Method
delete_messages
(&self, user_id: &str, msg_seq: Vec<i64>)
db/src/mongodb/message.rs:104
↓ 2 callers
Method
discovery
execute discovery once
utils/src/service_discovery/tonic_service_discovery.rs:60
↓ 2 callers
Method
download
(&self, bucket: &str, key: &str)
oss/src/client.rs:202
↓ 2 callers
Method
ensure_collection_indexed
确保指定的集合存在并有正确的索引
db/src/mongodb/sharded_message.rs:96
↓ 2 callers
Method
exists_by_name
(&self, bucket: &str, key: &str)
oss/src/client.rs:161
↓ 2 callers
Method
fetch
(&self)
utils/src/lib.rs:96
↓ 2 callers
Function
gen_token
( app_state: &AppState, mut user: User, addr: SocketAddr, )
api/src/handlers/users/mod.rs:79
↓ 2 callers
Function
get_auth_url
(client: &BasicClient)
api/src/handlers/users/oauth2.rs:107
↓ 2 callers
Function
get_chan_
( config: &Config, name: String, sender: Sender<Change<SocketAddr, Endpoint>>, )
utils/src/lib.rs:174
↓ 2 callers
Function
get_channel
( mut discovery: DynamicServiceDiscovery<ServiceResolver>, channel: Channel, )
utils/src/lib.rs:159
↓ 2 callers
Method
get_fs_list
get friendship list by user_id and offline_time
db/src/postgres/friend.rs:138
↓ 2 callers
Method
get_message
(&self, message_id: &str)
db/src/mongodb/sharded_message.rs:371
↓ 2 callers
Method
get_register_code
(&self, email: &str)
cache/src/redis/mod.rs:368
↓ 2 callers
Function
get_rpc_client
( config: &Config, service_name: String, )
utils/src/lib.rs:301
↓ 2 callers
Function
get_token_result
( client: &BasicClient, code: String, )
api/src/handlers/users/oauth2.rs:116
↓ 2 callers
Method
get_user_by_id
(&self, id: &str)
db/src/postgres/user.rs:90
↓ 2 callers
Method
handle_sub_services
(&self, services: Vec<Service>)
msg_server/src/pusher/service.rs:75
↓ 2 callers
Method
increase_seq
(&self, user_id: &str)
cache/src/redis/mod.rs:229
↓ 2 callers
Function
init_oauth2_client
(oauth2_config: &OAuth2Item)
api/src/lib.rs:101
↓ 2 callers
Method
into_response
(self)
abi/src/errors/mod.rs:276
↓ 2 callers
Method
level
(&self)
abi/src/config.rs:41
↓ 2 callers
Method
load
(filename: impl AsRef<Path>)
abi/src/config.rs:298
↓ 2 callers
Function
process_batch
处理一批消息
cmd/src/migrate.rs:178
↓ 2 callers
Method
remove_group_member_id
(&self, group_id: &str, member_id: &str)
cache/src/redis/mod.rs:330
↓ 2 callers
Method
rpc_server_url
(&self)
abi/src/config.rs:113
↓ 2 callers
Method
run
(mut self)
utils/src/service_discovery/tonic_service_discovery.rs:95
↓ 2 callers
Method
save_group_msg
( &self, mut message: Msg, members: Vec<GroupMemSeq>, )
db/src/mongodb/message.rs:73
↓ 2 callers
Method
save_max_seq
(&self, user_id: &str)
db/src/postgres/seq.rs:36
↓ 2 callers
Method
send_msg_to_clients
(&self, clients: &DashMap<PlatformType, Client>, msg: &Msg)
msg_gateway/src/manager.rs:92
↓ 2 callers
Method
send_single_msg
(&self, obj_id: &str, msg: &Msg)
msg_gateway/src/manager.rs:85
↓ 2 callers
Method
send_to_self
(&self, id: &str, msg: &Msg)
msg_gateway/src/manager.rs:62
↓ 2 callers
Method
server_url
(&self)
utils/src/mongodb_tester/mod.rs:35
↓ 2 callers
Method
server_url
(&self)
utils/src/sqlx_tester/mod.rs:62
↓ 2 callers
Function
service_register_center
(config: &Config)
utils/src/service_register_center/mod.rs:29
↓ 2 callers
Method
set_seq
(&self, max_seq: &[(String, i64, i64)])
cache/src/redis/mod.rs:149
↓ 2 callers
Method
upload
(&self, bucket: &str, key: &str, content: Vec<u8>)
oss/src/client.rs:191
↓ 2 callers
Method
url
(&self)
utils/src/sqlx_tester/mod.rs:73
↓ 1 callers
Method
add_tags_to_friend
( &self, user_id: &str, friend_id: &str, tag_ids: &[String], )
db/src/postgres/friend.rs:575
↓ 1 callers
Method
agree_friend_apply_request
(&self, fs: AgreeReply)
db/src/postgres/friend.rs:274
↓ 1 callers
Function
app_routes
(state: AppState)
api/src/routes.rs:30
↓ 1 callers
Method
as_str_name
String value of the enum field names used in the ProtoBuf definition. The values are not transformed in any way and thus are considered stable (if th
abi/src/pb/message.rs:204
↓ 1 callers
Method
assign_friend_to_group
( &self, user_id: &str, friend_id: &str, group_id: &str, )
db/src/postgres/friend.rs:497
↓ 1 callers
Function
benchmark_mixed_messages
( message_box: &Arc<dyn MsgRecBoxRepo>, count: usize, )
db/src/benchmarks/benchmark_sharding.rs:180
↓ 1 callers
Method
build_endpoint
(&self, address: SocketAddr)
utils/src/service_discovery/tonic_service_discovery.rs:87
↓ 1 callers
Method
change_member_role
( &self, group_id: &str, user_id: &str, target_id: &str, new_role: &st
db/src/postgres/group.rs:944
↓ 1 callers
Method
change_set
( &self, endpoints: &HashSet<SocketAddr>, )
utils/src/service_discovery/tonic_service_discovery.rs:71
↓ 1 callers
Method
check_avatar_bucket_exits
(&self)
oss/src/client.rs:74
↓ 1 callers
Method
check_bucket_exists
(&self)
oss/src/client.rs:55
↓ 1 callers
Method
check_default_avatars
(&self)
oss/src/client.rs:99
↓ 1 callers
Method
check_seq_loaded
(&self)
cache/src/redis/mod.rs:132
↓ 1 callers
Method
classify_msg_type
(&self, mt: MsgType)
msg_server/src/consumer.rs:178
↓ 1 callers
Method
clean_receive_box
(&self, period: i64, types: Vec<i32>)
db/src/mongodb/message.rs:252
↓ 1 callers
Method
close_poll
(&self, poll_id: &str, user_id: &str)
db/src/postgres/group.rs:648
↓ 1 callers
Method
connect
Attempt to create a new client by connecting to a given endpoint.
abi/src/pb/message.rs:1874
↓ 1 callers
Method
consume
(&mut self)
msg_server/src/consumer.rs:80
↓ 1 callers
Method
create_announcement
( &self, req: &CreateAnnouncementRequest, )
db/src/postgres/group.rs:844
↓ 1 callers
Method
create_bucket
(&self)
oss/src/client.rs:110
↓ 1 callers
Method
create_friend_group
Friend Group Management implementations
db/src/postgres/friend.rs:411
next →
1–100 of 492, ranked by callers