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
↓ 77 callers
Function
NewToastHeader
(level pb.ToastActionData_Level, message string)
common/i18n/i18n.go:132
↓ 51 callers
Function
file_conversation_proto_rawDescGZIP
()
common/pb/conversation.pb.go:3402
↓ 49 callers
Method
String
()
common/utils/any.go:8
↓ 44 callers
Function
file_user_proto_rawDescGZIP
()
common/pb/user.pb.go:3174
↓ 41 callers
Method
Error
(args ...interface{})
common/xmq/asynq.go:35
↓ 41 callers
Method
Marshal
Marshal 将公钥转换为字节
common/utils/ecdh.go:18
↓ 39 callers
Method
Get
(k string)
common/utils/map.go:38
↓ 35 callers
Method
Unmarshal
Unmarshal 将字节转换为公钥
common/utils/ecdh.go:20
↓ 25 callers
Method
MarshalToString
(v interface{})
common/utils/json.go:17
↓ 23 callers
Function
file_gateway_proto_rawDescGZIP
()
common/pb/gateway.pb.go:1621
↓ 23 callers
Function
file_message_proto_rawDescGZIP
()
common/pb/message.pb.go:1487
↓ 18 callers
Method
Lock
(ctx context.Context, rc *redis.Redis, key string, expireSecond int)
common/xcache/lock.go:13
↓ 18 callers
Method
Unlock
(ctx context.Context, rc *redis.Redis, key string)
common/xcache/lock.go:21
↓ 18 callers
Function
file_common_proto_rawDescGZIP
()
common/pb/common.pb.go:1539
↓ 17 callers
Function
AddUnifiedRoute
(svcCtx *svc.ServiceContext, path string, route Route[REQ, RESP])
app/gateway/internal/handler/route.go:84
↓ 17 callers
Function
NewRequestPool
(newRequest func() REQ)
app/gateway/internal/handler/route.go:40
↓ 17 callers
Function
NewResponsePool
(newResponse func() RESP)
app/gateway/internal/handler/route.go:50
↓ 16 callers
Function
MustNewMongoCollection
(config MongoCollectionConf, model any)
common/xmgo/mongo.go:33
↓ 16 callers
Method
Request
(path string, req any, resp any)
sdk/client/client.go:189
↓ 15 callers
Function
AnyString
(o any)
common/utils/any.go:56
↓ 15 callers
Method
Request
(path string, req any, resp any)
sdk/client/client.go:312
↓ 14 callers
Method
GetFilter
()
common/pb/gateway.pb.go:974
↓ 14 callers
Method
GetHeader
()
app/gateway/internal/handler/route.go:21
↓ 13 callers
Method
GetAccountMap
()
app/user/usermodel/user.go:80
↓ 12 callers
Function
file_third_proto_rawDescGZIP
()
common/pb/third.pb.go:1009
↓ 11 callers
Method
Any2Int64
(v any)
common/utils/number.go:18
↓ 11 callers
Method
Int64ToString
(i int64)
common/utils/time.go:15
↓ 10 callers
Method
Descriptor
Deprecated: Use Notice.ProtoReflect.Descriptor instead.
common/pb/common.pb.go:1135
↓ 10 callers
Method
Do
(f func() error)
common/utils/retry.go:13
↓ 10 callers
Function
NewOkHeader
()
common/i18n/i18n.go:124
↓ 10 callers
Function
getWsClient
(t *testing.T, config *Config)
sdk/client/gateway_test.go:56
↓ 9 callers
Method
MarshalToBytes
(v interface{})
common/utils/json.go:29
↓ 9 callers
Function
NewGatewayServiceClient
(cc grpc.ClientConnInterface)
common/pb/gateway_grpc.pb.go:60
↓ 9 callers
Function
NewInvalidDataError
(msg string)
common/i18n/i18n.go:105
↓ 9 callers
Method
Start
()
app/gateway/internal/server/rtcServer.go:27
↓ 9 callers
Function
getHttpClient
(t *testing.T, config *Config)
sdk/client/gateway_test.go:45
↓ 8 callers
Function
AnyPtr
(v T)
common/utils/any.go:3
↓ 8 callers
Function
MarshalWriteData
(data *pb.GatewayApiResponse)
app/gateway/internal/types/response.go:13
↓ 8 callers
Function
NewAccountServiceClient
(cc grpc.ClientConnInterface)
common/pb/user_grpc.pb.go:55
↓ 8 callers
Function
NewECDH
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 callers
Method
GatewayService
()
app/gateway/internal/svc/serviceContext.go:69
↓ 7 callers
Method
GenerateKey
GenerateKey 生成公私钥对
common/utils/ecdh.go:16
↓ 7 callers
Function
Md5
(s string)
common/utils/utils.go:14
↓ 7 callers
Function
NewInfoServiceClient
(cc grpc.ClientConnInterface)
common/pb/user_grpc.pb.go:422
↓ 7 callers
Function
file_common_proto_init
()
common/pb/common.pb.go:1590
↓ 6 callers
Method
GetOpt
()
common/pb/user.pb.go:2318
↓ 6 callers
Method
GetOption
()
common/pb/common.pb.go:1071
↓ 6 callers
Method
GetSender
()
common/pb/common.pb.go:1029
↓ 6 callers
Method
GetUserIds
()
common/pb/message.pb.go:764
↓ 6 callers
Method
Header
Header returns the http header.
app/gateway/internal/middleware/tracing.go:95
↓ 6 callers
Function
NewSubscriptionServiceClient
(cc grpc.ClientConnInterface)
common/pb/conversation_grpc.pb.go:611
↓ 6 callers
Method
SetHeader
(*pb.ResponseHeader)
app/gateway/internal/handler/route.go:26
↓ 6 callers
Function
UserDefaultSubscriptionId
(uid string)
app/conversation/subscriptionmodel/subscription.go:121
↓ 6 callers
Method
generateToken
(in *pb.UserAccessTokenReq, user *usermodel.User)
app/user/internal/logic/accountservice/userAccessTokenLogic.go:263
↓ 5 callers
Method
GatewayWriteDataToWsWrapper
GatewayWriteDataToWsWrapper 向用户的连接写入数据
app/gateway/client/gatewayservice/gatewayService.go:49
↓ 5 callers
Method
GetConnectionsByUserIds
(ids []string)
app/gateway/internal/logic/gatewayservice/x_connection.go:128
↓ 5 callers
Function
MustNewRedis
(config redis.RedisConf)
common/xcache/redis.go:9
↓ 5 callers
Function
NewAuthError
(typ pb.AuthErrorType, message string)
common/i18n/i18n.go:145
↓ 5 callers
Function
NewCallbackServiceClient
(cc grpc.ClientConnInterface)
common/pb/user_grpc.pb.go:746
↓ 5 callers
Function
NewGroupServiceClient
(cc grpc.ClientConnInterface)
common/pb/conversation_grpc.pb.go:41
↓ 5 callers
Function
NewServerError
(env string, err error)
common/i18n/i18n.go:87
↓ 5 callers
Method
ToPb
()
app/gateway/internal/logic/gatewayservice/x_connection.go:107
↓ 5 callers
Method
Write
(p []byte)
app/gateway/internal/server/httpServer.go:17
↓ 4 callers
Method
Decrypt
(key, iv []byte, data []byte)
common/utils/aes.go:17
↓ 4 callers
Function
EnumInSlice
(v T, slice []T)
common/utils/any.go:14
↓ 4 callers
Method
GenerateSharedSecret
GenerateSharedSecret 生成共享密钥
common/utils/ecdh.go:22
↓ 4 callers
Method
GetConversationList
()
common/pb/conversation.pb.go:1431
↓ 4 callers
Method
GetSubscribeTimeGte
()
common/pb/conversation.pb.go:2202
↓ 4 callers
Method
GetUserModelById
GetUserModelById 获取用户模型
app/user/client/infoservice/infoService.go:71
↓ 4 callers
Method
GetUserSettingKeys
()
common/pb/user.pb.go:2566
↓ 4 callers
Method
GetValue
()
common/pb/conversation.pb.go:2637
↓ 4 callers
Function
NewFriendServiceClient
(cc grpc.ClientConnInterface)
common/pb/conversation_grpc.pb.go:279
↓ 4 callers
Function
NewMessageServiceClient
(cc grpc.ClientConnInterface)
common/pb/message_grpc.pb.go:40
↓ 4 callers
Method
NoticeSend
NoticeSend 通知发送
app/message/client/noticeservice/noticeService.go:41
↓ 4 callers
Method
Produce
Produce 生产消息
common/xmq/types.go:28
↓ 4 callers
Method
SS2SA
(ss map[string]string)
common/utils/map.go:10
↓ 4 callers
Method
SendMessage
发送消息
app/gateway/internal/types/loogConnection.go:10
↓ 4 callers
Method
SliceString
(list []string)
common/utils/reandom.go:25
↓ 4 callers
Method
ToString
()
common/pb/xx.common.go:29
↓ 4 callers
Method
UserAccessToken
UserAccessToken 用户登录 登录逻辑可以从这里修改 默认是密码/手机号登录
common/pb/user_grpc.pb.go:33
↓ 4 callers
Method
UserRegister
UserRegister 用户注册 二次开发人员可以传递自定义参数 如果不满足你的需求 你可以修改该proto文件
common/pb/user_grpc.pb.go:27
↓ 3 callers
Method
AddFriend
(fromUserId string, toUser *usermodel.User)
app/conversation/internal/logic/friendservice/friendApplyHandleLogic.go:116
↓ 3 callers
Function
AnyInSlice
(v T, slice []T)
common/utils/any.go:23
↓ 3 callers
Function
AnySet
(list []T)
common/utils/any.go:32
↓ 3 callers
Method
AuthenticationConnection
AuthenticationConnection 验证连接 客户端拿着userId token,鉴权连接
common/pb/gateway_grpc.pb.go:53
↓ 3 callers
Method
CaptchaVerify
CaptchaVerify 验证图形验证码 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:290
↓ 3 callers
Method
CloseConnection
关闭连接
app/gateway/internal/types/loogConnection.go:12
↓ 3 callers
Method
ConversationSettingUpdate
ConversationSettingUpdate 更新会话设置
common/pb/conversation_grpc.pb.go:468
↓ 3 callers
Method
CountCreateGroup
CountCreateGroup 统计创建的群组数量
common/pb/conversation_grpc.pb.go:30
↓ 3 callers
Method
CountFriend
CountFriend 统计好友数量
common/pb/conversation_grpc.pb.go:272
↓ 3 callers
Method
CountJoinGroup
CountJoinGroup 统计加入的群组数量
common/pb/conversation_grpc.pb.go:28
↓ 3 callers
Method
CreateRobot
CreateRobot 创建机器人 创建机器人逻辑可以从这里修改
common/pb/user_grpc.pb.go:48
↓ 3 callers
Method
DeleteUserSubscription
DeleteUserSubscription 删除用户订阅的订阅号
common/pb/conversation_grpc.pb.go:602
↓ 3 callers
Method
EmailCodeSend
EmailCodeSend 发送邮件 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:157
↓ 3 callers
Method
EmailCodeVerify
EmailCodeVerify 验证邮件 二次开发人员可以自行实现
common/pb/third_grpc.pb.go:160
↓ 3 callers
Method
Encrypt
Encrypt aes加密
common/utils/aes.go:34
↓ 3 callers
Method
FriendApply
FriendApply 添加好友
common/pb/conversation_grpc.pb.go:266
↓ 3 callers
Method
FriendApplyHandle
FriendApplyHandle 处理好友申请
common/pb/conversation_grpc.pb.go:268
↓ 3 callers
Method
GatewayBatchGetUserConnection
GatewayBatchGetUserConnection 批量获取用户的连接 二次开发人员建议不修改此处逻辑
common/pb/gateway_grpc.pb.go:30
↓ 3 callers
Method
GatewayGetConnectionByFilter
GatewayGetConnectionByFilter 通过条件获取用户的连接 二次开发人员可以增加过滤条件
common/pb/gateway_grpc.pb.go:33
next →
1–100 of 2,430, ranked by callers