MCPcopy Create free account

hub / github.com/cherish-chat/xxim-server / functions

Functions2,430 in github.com/cherish-chat/xxim-server

↓ 77 callersFunctionNewToastHeader
(level pb.ToastActionData_Level, message string)
common/i18n/i18n.go:132
↓ 51 callersFunctionfile_conversation_proto_rawDescGZIP
()
common/pb/conversation.pb.go:3402
↓ 49 callersMethodString
()
common/utils/any.go:8
↓ 44 callersFunctionfile_user_proto_rawDescGZIP
()
common/pb/user.pb.go:3174
↓ 41 callersMethodError
(args ...interface{})
common/xmq/asynq.go:35
↓ 41 callersMethodMarshal
Marshal 将公钥转换为字节
common/utils/ecdh.go:18
↓ 39 callersMethodGet
(k string)
common/utils/map.go:38
↓ 35 callersMethodUnmarshal
Unmarshal 将字节转换为公钥
common/utils/ecdh.go:20
↓ 25 callersMethodMarshalToString
(v interface{})
common/utils/json.go:17
↓ 23 callersFunctionfile_gateway_proto_rawDescGZIP
()
common/pb/gateway.pb.go:1621
↓ 23 callersFunctionfile_message_proto_rawDescGZIP
()
common/pb/message.pb.go:1487
↓ 18 callersMethodLock
(ctx context.Context, rc *redis.Redis, key string, expireSecond int)
common/xcache/lock.go:13
↓ 18 callersMethodUnlock
(ctx context.Context, rc *redis.Redis, key string)
common/xcache/lock.go:21
↓ 18 callersFunctionfile_common_proto_rawDescGZIP
()
common/pb/common.pb.go:1539
↓ 17 callersFunctionAddUnifiedRoute
(svcCtx *svc.ServiceContext, path string, route Route[REQ, RESP])
app/gateway/internal/handler/route.go:84
↓ 17 callersFunctionNewRequestPool
(newRequest func() REQ)
app/gateway/internal/handler/route.go:40
↓ 17 callersFunctionNewResponsePool
(newResponse func() RESP)
app/gateway/internal/handler/route.go:50
↓ 16 callersFunctionMustNewMongoCollection
(config MongoCollectionConf, model any)
common/xmgo/mongo.go:33
↓ 16 callersMethodRequest
(path string, req any, resp any)
sdk/client/client.go:189
↓ 15 callersFunctionAnyString
(o any)
common/utils/any.go:56
↓ 15 callersMethodRequest
(path string, req any, resp any)
sdk/client/client.go:312
↓ 14 callersMethodGetFilter
()
common/pb/gateway.pb.go:974
↓ 14 callersMethodGetHeader
()
app/gateway/internal/handler/route.go:21
↓ 13 callersMethodGetAccountMap
()
app/user/usermodel/user.go:80
↓ 12 callersFunctionfile_third_proto_rawDescGZIP
()
common/pb/third.pb.go:1009
↓ 11 callersMethodAny2Int64
(v any)
common/utils/number.go:18
↓ 11 callersMethodInt64ToString
(i int64)
common/utils/time.go:15
↓ 10 callersMethodDescriptor
Deprecated: Use Notice.ProtoReflect.Descriptor instead.
common/pb/common.pb.go:1135
↓ 10 callersMethodDo
(f func() error)
common/utils/retry.go:13
↓ 10 callersFunctionNewOkHeader
()
common/i18n/i18n.go:124
↓ 10 callersFunctiongetWsClient
(t *testing.T, config *Config)
sdk/client/gateway_test.go:56
↓ 9 callersMethodMarshalToBytes
(v interface{})
common/utils/json.go:29
↓ 9 callersFunctionNewGatewayServiceClient
(cc grpc.ClientConnInterface)
common/pb/gateway_grpc.pb.go:60
↓ 9 callersFunctionNewInvalidDataError
(msg string)
common/i18n/i18n.go:105
↓ 9 callersMethodStart
()
app/gateway/internal/server/rtcServer.go:27
↓ 9 callersFunctiongetHttpClient
(t *testing.T, config *Config)
sdk/client/gateway_test.go:45
↓ 8 callersFunctionAnyPtr
(v T)
common/utils/any.go:3
↓ 8 callersFunctionMarshalWriteData
(data *pb.GatewayApiResponse)
app/gateway/internal/types/response.go:13
↓ 8 callersFunctionNewAccountServiceClient
(cc grpc.ClientConnInterface)
common/pb/user_grpc.pb.go:55
↓ 8 callersFunctionNewECDH
NewECDH creates a new instance of ECDH with the given elliptic.Curve curve to use as the elliptical curve for elliptical curve diffie-hellman.
common/utils/ecdh.go:47
↓ 7 callersMethodGatewayService
()
app/gateway/internal/svc/serviceContext.go:69
↓ 7 callersMethodGenerateKey
GenerateKey 生成公私钥对
common/utils/ecdh.go:16
↓ 7 callersFunctionMd5
(s string)
common/utils/utils.go:14
↓ 7 callersFunctionNewInfoServiceClient
(cc grpc.ClientConnInterface)
common/pb/user_grpc.pb.go:422
↓ 7 callersFunctionfile_common_proto_init
()
common/pb/common.pb.go:1590
↓ 6 callersMethodGetOpt
()
common/pb/user.pb.go:2318
↓ 6 callersMethodGetOption
()
common/pb/common.pb.go:1071
↓ 6 callersMethodGetSender
()
common/pb/common.pb.go:1029
↓ 6 callersMethodGetUserIds
()
common/pb/message.pb.go:764
↓ 6 callersMethodHeader
Header returns the http header.
app/gateway/internal/middleware/tracing.go:95
↓ 6 callersFunctionNewSubscriptionServiceClient
(cc grpc.ClientConnInterface)
common/pb/conversation_grpc.pb.go:611
↓ 6 callersMethodSetHeader
(*pb.ResponseHeader)
app/gateway/internal/handler/route.go:26
↓ 6 callersFunctionUserDefaultSubscriptionId
(uid string)
app/conversation/subscriptionmodel/subscription.go:121
↓ 6 callersMethodgenerateToken
(in *pb.UserAccessTokenReq, user *usermodel.User)
app/user/internal/logic/accountservice/userAccessTokenLogic.go:263
↓ 5 callersMethodGatewayWriteDataToWsWrapper
GatewayWriteDataToWsWrapper 向用户的连接写入数据
app/gateway/client/gatewayservice/gatewayService.go:49
↓ 5 callersMethodGetConnectionsByUserIds
(ids []string)
app/gateway/internal/logic/gatewayservice/x_connection.go:128
↓ 5 callersFunctionMustNewRedis
(config redis.RedisConf)
common/xcache/redis.go:9
↓ 5 callersFunctionNewAuthError
(typ pb.AuthErrorType, message string)
common/i18n/i18n.go:145
↓ 5 callersFunctionNewCallbackServiceClient
(cc grpc.ClientConnInterface)
common/pb/user_grpc.pb.go:746
↓ 5 callersFunctionNewGroupServiceClient
(cc grpc.ClientConnInterface)
common/pb/conversation_grpc.pb.go:41
↓ 5 callersFunctionNewServerError
(env string, err error)
common/i18n/i18n.go:87
↓ 5 callersMethodToPb
()
app/gateway/internal/logic/gatewayservice/x_connection.go:107
↓ 5 callersMethodWrite
(p []byte)
app/gateway/internal/server/httpServer.go:17
↓ 4 callersMethodDecrypt
(key, iv []byte, data []byte)
common/utils/aes.go:17
↓ 4 callersFunctionEnumInSlice
(v T, slice []T)
common/utils/any.go:14
↓ 4 callersMethodGenerateSharedSecret
GenerateSharedSecret 生成共享密钥
common/utils/ecdh.go:22
↓ 4 callersMethodGetConversationList
()
common/pb/conversation.pb.go:1431
↓ 4 callersMethodGetSubscribeTimeGte
()
common/pb/conversation.pb.go:2202
↓ 4 callersMethodGetUserModelById
GetUserModelById 获取用户模型
app/user/client/infoservice/infoService.go:71
↓ 4 callersMethodGetUserSettingKeys
()
common/pb/user.pb.go:2566
↓ 4 callersMethodGetValue
()
common/pb/conversation.pb.go:2637
↓ 4 callersFunctionNewFriendServiceClient
(cc grpc.ClientConnInterface)
common/pb/conversation_grpc.pb.go:279
↓ 4 callersFunctionNewMessageServiceClient
(cc grpc.ClientConnInterface)
common/pb/message_grpc.pb.go:40
↓ 4 callersMethodNoticeSend
NoticeSend 通知发送
app/message/client/noticeservice/noticeService.go:41
↓ 4 callersMethodProduce
Produce 生产消息
common/xmq/types.go:28
↓ 4 callersMethodSS2SA
(ss map[string]string)
common/utils/map.go:10
↓ 4 callersMethodSendMessage
发送消息
app/gateway/internal/types/loogConnection.go:10
↓ 4 callersMethodSliceString
(list []string)
common/utils/reandom.go:25
↓ 4 callersMethodToString
()
common/pb/xx.common.go:29
↓ 4 callersMethodUserAccessToken
UserAccessToken 用户登录 登录逻辑可以从这里修改 默认是密码/手机号登录
common/pb/user_grpc.pb.go:33
↓ 4 callersMethodUserRegister
UserRegister 用户注册 二次开发人员可以传递自定义参数 如果不满足你的需求 你可以修改该proto文件
common/pb/user_grpc.pb.go:27
↓ 3 callersMethodAddFriend
(fromUserId string, toUser *usermodel.User)
app/conversation/internal/logic/friendservice/friendApplyHandleLogic.go:116
↓ 3 callersFunctionAnyInSlice
(v T, slice []T)
common/utils/any.go:23
↓ 3 callersFunctionAnySet
(list []T)
common/utils/any.go:32
↓ 3 callersMethodAuthenticationConnection
AuthenticationConnection 验证连接 客户端拿着userId token,鉴权连接
common/pb/gateway_grpc.pb.go:53
↓ 3 callersMethodCaptchaVerify
CaptchaVerify 验证图形验证码 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:290
↓ 3 callersMethodCloseConnection
关闭连接
app/gateway/internal/types/loogConnection.go:12
↓ 3 callersMethodConversationSettingUpdate
ConversationSettingUpdate 更新会话设置
common/pb/conversation_grpc.pb.go:468
↓ 3 callersMethodCountCreateGroup
CountCreateGroup 统计创建的群组数量
common/pb/conversation_grpc.pb.go:30
↓ 3 callersMethodCountFriend
CountFriend 统计好友数量
common/pb/conversation_grpc.pb.go:272
↓ 3 callersMethodCountJoinGroup
CountJoinGroup 统计加入的群组数量
common/pb/conversation_grpc.pb.go:28
↓ 3 callersMethodCreateRobot
CreateRobot 创建机器人 创建机器人逻辑可以从这里修改
common/pb/user_grpc.pb.go:48
↓ 3 callersMethodDeleteUserSubscription
DeleteUserSubscription 删除用户订阅的订阅号
common/pb/conversation_grpc.pb.go:602
↓ 3 callersMethodEmailCodeSend
EmailCodeSend 发送邮件 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:157
↓ 3 callersMethodEmailCodeVerify
EmailCodeVerify 验证邮件 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:160
↓ 3 callersMethodEncrypt
Encrypt aes加密
common/utils/aes.go:34
↓ 3 callersMethodFriendApply
FriendApply 添加好友
common/pb/conversation_grpc.pb.go:266
↓ 3 callersMethodFriendApplyHandle
FriendApplyHandle 处理好友申请
common/pb/conversation_grpc.pb.go:268
↓ 3 callersMethodGatewayBatchGetUserConnection
GatewayBatchGetUserConnection 批量获取用户的连接 二次开发人员建议不修改此处逻辑
common/pb/gateway_grpc.pb.go:30
↓ 3 callersMethodGatewayGetConnectionByFilter
GatewayGetConnectionByFilter 通过条件获取用户的连接 二次开发人员可以增加过滤条件
common/pb/gateway_grpc.pb.go:33
next →1–100 of 2,430, ranked by callers