Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cherish-chat/xxim-server
/ functions
Functions
2,430 in github.com/cherish-chat/xxim-server
⨍
Functions
2,430
◇
Types & classes
474
↓ 3 callers
Method
GatewayGetUserConnection
GatewayGetUserConnection 获取用户的连接 二次开发人员不建议修改此处逻辑
common/pb/gateway_grpc.pb.go:27
↓ 3 callers
Method
GatewayKeepAlive
KeepAlive 保持连接 客户端必须每隔 config.Websocket.KeepAliveSecond 秒发送一次心跳包 二次开发人员可以在这里修改逻辑,比如一致性算法安全校验等
common/pb/gateway_grpc.pb.go:47
↓ 3 callers
Method
GatewayKickWs
GatewayKickWs 踢出用户的连接 二次开发人员可以在此处修改踢出用户连接的逻辑 比如踢出连接之前,先给用户发送一条消息
common/pb/gateway_grpc.pb.go:43
↓ 3 callers
Method
GatewayWriteDataToWs
GatewayWriteDataToWs 向用户的连接写入数据 二次开发人员不建议修改此处逻辑
common/pb/gateway_grpc.pb.go:36
↓ 3 callers
Method
GatewayWriteDataToWsWrapper
GatewayWriteDataToWsWrapper 向用户的连接写入数据 二次开发人员不建议修改此处逻辑
common/pb/gateway_grpc.pb.go:39
↓ 3 callers
Method
GetCaptcha
GetCaptcha 获取图形验证码 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:287
↓ 3 callers
Method
GetConversationId
()
common/pb/common.pb.go:1146
↓ 3 callers
Method
GetId
()
common/pb/common.pb.go:1236
↓ 3 callers
Method
GetJwtUniqueKey
GetJwtUniqueKey 获取jwt唯一key 验证时会先使用token字符串获取userId 再使用userId redis> HGET token:$userId jwtUniqueKey jwtUniqueKey 一个用户允许在多么多个设备上登录 取决于 jwtUniqueKey的生成规
common/pb/xx.user.go:30
↓ 3 callers
Method
GetSelfUserInfo
GetSelfUserInfo 获取自己的用户信息 获取自己的用户信息逻辑可以从这里修改
common/pb/user_grpc.pb.go:406
↓ 3 callers
Method
GetUserInfo
GetUserInfo 获取用户信息 获取用户信息逻辑可以从这里修改
common/pb/user_grpc.pb.go:409
↓ 3 callers
Method
GetUserModelById
GetUserModelById 获取用户模型 获取用户模型逻辑可以从这里修改
common/pb/user_grpc.pb.go:412
↓ 3 callers
Method
GetUserModelByIds
GetUserModelByIds 批量获取用户模型 批量获取用户模型逻辑可以从这里修改
common/pb/user_grpc.pb.go:415
↓ 3 callers
Method
GroupCreate
GroupCreate 创建群组
common/pb/conversation_grpc.pb.go:26
↓ 3 callers
Method
GroupIdString
()
app/conversation/groupmodel/group.go:60
↓ 3 callers
Method
GroupSubscribe
GroupSubscribe 群组订阅
common/pb/conversation_grpc.pb.go:32
↓ 3 callers
Method
HashKeyConvKv
(convId string, convTyp int32)
common/xcache/rediskey.go:29
↓ 3 callers
Method
Int
(length int)
common/utils/reandom.go:14
↓ 3 callers
Method
KeepAlive
()
sdk/client/client.go:153
↓ 3 callers
Method
ListFriendApply
ListFriendApply 列出好友申请
common/pb/conversation_grpc.pb.go:270
↓ 3 callers
Method
ListGroupSubscribers
ListGroupSubscribers 列出群组订阅者
common/pb/conversation_grpc.pb.go:34
↓ 3 callers
Method
ListJoinedConversations
ListJoinedConversations 列出加入的会话
common/pb/conversation_grpc.pb.go:470
↓ 3 callers
Method
ListNotice
ListNotice 获取通知列表
common/pb/message_grpc.pb.go:234
↓ 3 callers
Method
ListSubscriptionSubscribers
ListSubscriptionSubscribers 列出订阅号订阅者
common/pb/conversation_grpc.pb.go:604
↓ 3 callers
Method
Match
(pattern string, s string)
common/utils/regex.go:10
↓ 3 callers
Method
MessageBatchSend
MessageBatchSend 批量发送消息
common/pb/message_grpc.pb.go:31
↓ 3 callers
Method
MessageInsert
MessageInsert 插入消息 二次开发时,需要实现该接口
common/pb/message_grpc.pb.go:27
↓ 3 callers
Method
MessagePush
MessagePush 推送消息
common/pb/message_grpc.pb.go:33
↓ 3 callers
Method
MessageSend
MessageSend 发送消息
common/pb/message_grpc.pb.go:29
↓ 3 callers
Function
NewFriendApplyHandleLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
app/conversation/internal/logic/friendservice/friendApplyHandleLogic.go:28
↓ 3 callers
Function
NewFriendService
(cli zrpc.Client)
app/conversation/client/friendservice/friendService.go:82
↓ 3 callers
Function
NewGroupService
(cli zrpc.Client)
app/conversation/client/groupservice/groupService.go:84
↓ 3 callers
Function
NewInfoService
(cli zrpc.Client)
app/user/client/infoservice/infoService.go:81
↓ 3 callers
Function
NewMessageService
(cli zrpc.Client)
app/message/client/messageservice/messageService.go:55
↓ 3 callers
Function
NewNoticeService
(cli zrpc.Client)
app/message/client/noticeservice/noticeService.go:53
↓ 3 callers
Function
NewNoticeServiceClient
(cc grpc.ClientConnInterface)
common/pb/message_grpc.pb.go:241
↓ 3 callers
Function
NewSubscriptionService
(cli zrpc.Client)
app/conversation/client/subscriptionservice/subscriptionService.go:86
↓ 3 callers
Method
NoticeBatchSend
NoticeBatchSend 通知批量发送
common/pb/message_grpc.pb.go:232
↓ 3 callers
Method
NoticeSend
NoticeSend 通知发送
common/pb/message_grpc.pb.go:230
↓ 3 callers
Method
RefreshUserAccessToken
RefreshUserAccessToken 刷新用户token 刷新逻辑可以从这里修改
common/pb/user_grpc.pb.go:36
↓ 3 callers
Method
RegisterHandler
(topic Topic, handler HandlerFunc)
common/xmq/types.go:29
↓ 3 callers
Method
ResetUserAccountMap
ResetUserAccountMap 重置用户账号信息 重置账号信息逻辑可以从这里修改
common/pb/user_grpc.pb.go:45
↓ 3 callers
Method
RevokeUserAccessToken
RevokeUserAccessToken 注销用户token 注销逻辑可以从这里修改
common/pb/user_grpc.pb.go:39
↓ 3 callers
Method
SmsCodeSend
SmsCodeSend 发送短信 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:27
↓ 3 callers
Method
SmsCodeVerify
SmsCodeVerify 验证短信 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:30
↓ 3 callers
Method
SubscriptionAfterOffline
SubscriptionAfterOffline 订阅号在做用户下线后的操作
common/pb/conversation_grpc.pb.go:598
↓ 3 callers
Method
SubscriptionAfterOnline
SubscriptionAfterOnline 订阅号在做用户上线后的操作
common/pb/conversation_grpc.pb.go:596
↓ 3 callers
Method
SubscriptionSubscribe
SubscriptionSubscribe 订阅号订阅
common/pb/conversation_grpc.pb.go:594
↓ 3 callers
Method
ToPb
()
app/message/messagemodel/message.go:105
↓ 3 callers
Method
UpdateUserAccountMap
UpdateUserAccountMap 更新用户账号信息 更新账号信息逻辑可以从这里修改 默认:如果是修改密码,需要旧密码或手机验证码。如果修改绑定手机号,需要验证新手机号的验证码
common/pb/user_grpc.pb.go:42
↓ 3 callers
Method
UpdateUserCountMap
UpdateUserCountMap 更新用户计数信息
app/user/client/infoservice/infoService.go:65
↓ 3 callers
Method
UpdateUserCountMap
UpdateUserCountMap 更新用户计数信息 更新计数信息逻辑可以从这里修改
common/pb/user_grpc.pb.go:403
↓ 3 callers
Method
UpdateUserExtraMap
UpdateUserExtraMap 更新用户扩展信息 更新扩展信息逻辑可以从这里修改
common/pb/user_grpc.pb.go:400
↓ 3 callers
Method
UpdateUserProfileMap
UpdateUserProfileMap 更新用户个人信息 更新个人信息逻辑可以从这里修改
common/pb/user_grpc.pb.go:397
↓ 3 callers
Method
UpsertUserSubscription
UpsertUserSubscription 更新用户订阅的订阅号
common/pb/conversation_grpc.pb.go:600
↓ 3 callers
Method
UserAfterKeepAlive
UserAfterKeepAlive 用户保活回调 用户保活回调逻辑可以从这里修改
common/pb/user_grpc.pb.go:739
↓ 3 callers
Method
UserAfterOffline
UserAfterOffline 用户下线回调
app/user/client/callbackservice/callbackService.go:63
↓ 3 callers
Method
UserAfterOffline
UserAfterOffline 用户下线回调 用户下线回调逻辑可以从这里修改
common/pb/user_grpc.pb.go:730
↓ 3 callers
Method
UserAfterOnline
UserAfterOnline 用户上线回调 用户上线回调逻辑可以从这里修改
common/pb/user_grpc.pb.go:727
↓ 3 callers
Method
UserBeforeConnect
UserBeforeConnect 用户连接前的回调 用户连接前的回调逻辑可以从这里修改
common/pb/user_grpc.pb.go:733
↓ 3 callers
Method
UserBeforeRequest
UserBeforeRequest 用户请求前的回调 用户请求前的回调逻辑可以从这里修改
common/pb/user_grpc.pb.go:736
↓ 3 callers
Method
UserDestroy
UserDestroy 用户注销 注销逻辑可以从这里修改
common/pb/user_grpc.pb.go:30
↓ 3 callers
Method
VerifyConnection
VerifyConnection 验证连接 客户端拿着自己的公钥,请求网关,网关返回自己的公钥
common/pb/gateway_grpc.pb.go:50
↓ 3 callers
Method
VerifyPwd
(input, db string, salt string)
common/utils/pwd.go:19
↓ 3 callers
Method
WorldPostSubmit
WorldPostSubmit 世界圈帖子发布
common/pb/world_grpc.pb.go:26
↓ 3 callers
Method
pushMessageToUserIds
(in *pb.MessagePushReq, message *pb.Message, userIds []string)
app/message/internal/logic/messageservice/messagePushLogic.go:97
↓ 3 callers
Function
sleep
(reconnectCount *int)
app/gateway/internal/server/rtcServer.go:149
↓ 2 callers
Method
AreFriends
(fromUserId string, toUserId string)
app/conversation/internal/logic/friendservice/friendApplyHandleLogic.go:243
↓ 2 callers
Function
BatchInsertMany
BatchInsertMany 批量插入 防止一次插入太多数据 mongodb限制一次插入的数据量
common/xmgo/utils.go:31
↓ 2 callers
Method
CaptchaVerify
CaptchaVerify 验证图形验证码
app/third/client/captchaservice/captchaService.go:33
↓ 2 callers
Method
Descriptor
Deprecated: Use UserDestroyReq.ProtoReflect.Descriptor instead.
common/pb/user.pb.go:319
↓ 2 callers
Method
Descriptor
Deprecated: Use GroupCreateReq.ProtoReflect.Descriptor instead.
common/pb/conversation.pb.go:165
↓ 2 callers
Method
EmailCodeVerify
EmailCodeVerify 验证邮件
app/third/client/emailservice/emailService.go:33
↓ 2 callers
Method
FirstUtf8
FirstUtf8 获取字符串的第一个utf8字符,如果字符串为空,则返回” 如果字符串不是ascii编码,则返回第一个utf8字符,如果是ascii编码,则返回第一个字符
common/utils/string.go:10
↓ 2 callers
Method
Float64ToString
(f float64)
common/utils/number.go:14
↓ 2 callers
Method
GenerateGroupId
()
app/conversation/groupmodel/group.go:98
↓ 2 callers
Method
GeneratePwd
(original string, salt string)
common/utils/pwd.go:14
↓ 2 callers
Method
GetClientIP
(r *http.Request)
common/utils/http.go:14
↓ 2 callers
Method
GetCode
()
common/pb/common.pb.go:911
↓ 2 callers
Method
GetCountMap
()
app/user/usermodel/user.go:93
↓ 2 callers
Function
GetECDHSecret
GetECDHSecret 使用自己的私钥和别人的公钥(hex),协商密钥
common/utils/ecdh.go:124
↓ 2 callers
Method
GetSettingList
()
common/pb/conversation.pb.go:2530
↓ 2 callers
Function
GetSingleChatConversationId
(id1 string, id2 string)
common/pb/xx.message.go:12
↓ 2 callers
Method
GetStorageForServer
()
common/pb/common.pb.go:1312
↓ 2 callers
Method
GetWithUserSettings
()
common/pb/user.pb.go:2559
↓ 2 callers
Method
HashKeyConvMinSeq
(userId string)
common/xcache/rediskey.go:33
↓ 2 callers
Method
HexEncodePrivateKeyToString
HexEncodePrivateKeyToString 将私钥转换为hex字符串
common/utils/ecdh.go:26
↓ 2 callers
Method
HexEncodePublicKeyToString
HexEncodePublicKeyToString 将公钥钥转换为hex字符串
common/utils/ecdh.go:24
↓ 2 callers
Method
Info
(args ...interface{})
common/xmq/asynq.go:27
↓ 2 callers
Method
IsFriendLimit
(fromUserId string, toUserId string)
app/conversation/internal/logic/friendservice/friendApplyHandleLogic.go:258
↓ 2 callers
Method
IsFriendLimit_
(userId string)
app/conversation/internal/logic/friendservice/friendApplyHandleLogic.go:276
↓ 2 callers
Method
ListFriendApply
(req *pb.ListFriendApplyReq)
sdk/client/client.go:36
↓ 2 callers
Method
ListGroupSubscribers
ListGroupSubscribers 列出群组订阅者
app/conversation/client/groupservice/groupService.go:76
↓ 2 callers
Method
ListJoinedConversations
ListJoinedConversations 列出加入的会话
app/conversation/client/conversationservice/conversationService.go:70
↓ 2 callers
Method
ListSubscriptionSubscribers
ListSubscriptionSubscribers 列出订阅号订阅者
app/conversation/client/subscriptionservice/subscriptionService.go:78
↓ 2 callers
Method
LockKeyUserEmail
(email string)
common/xcache/rediskey.go:25
↓ 2 callers
Method
LockKeyUserPhone
(phone string, phoneCode string)
common/xcache/rediskey.go:21
↓ 2 callers
Method
LockKeyUserUsername
(username string)
common/xcache/rediskey.go:17
↓ 2 callers
Function
MarshalResponse
(data proto.Message)
app/gateway/internal/types/response.go:8
↓ 2 callers
Method
MessageBatchSend
(req *pb.MessageBatchSendReq)
sdk/client/client.go:43
← previous
next →
101–200 of 2,430, ranked by callers