Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoSimplicity/LinkMe
/ functions
Functions
1,482 in github.com/GoSimplicity/LinkMe
⨍
Functions
1,482
◇
Types & classes
383
Method
ReleaseLock
(ctx context.Context, number string)
internal/repository/cache/sms.go:20
Method
ReleaseLock
ReleaseLock 释放 lock
internal/repository/cache/sms.go:113
Method
RemoveRolePermissions
RemoveRolePermissions 实现角色权限移除
internal/repository/permission.go:42
Method
RemoveRolePermissions
RemoveRolePermissions 批量移除角色对应api权限
internal/repository/dao/permission.go:193
Method
RemoveUserPermissions
RemoveUserPermissions 实现用户权限移除
internal/repository/permission.go:47
Method
RemoveUserPermissions
RemoveUserPermissions 移除用户权限
internal/repository/dao/permission.go:162
Method
RemoveUsersPermissions
RemoveUsersPermissions 实现批量用户权限移除
internal/repository/permission.go:57
Method
RemoveUsersPermissions
RemoveUsersPermissions 批量移除用户权限
internal/repository/dao/permission.go:403
Method
ReplaceTopN
ReplaceTopN 替换缓存中的排名前 N 的帖子
internal/repository/ranking.go:60
Method
ResetNextTime
(ctx context.Context, dj domain.Job)
internal/service/sql_job.go:13
Method
ResetNextTime
ResetNextTime 重置任务的下次执行时间
internal/service/sql_job.go:62
Method
ResetRanking
(ctx *gin.Context, req req.RankingParameterReq)
internal/api/ranking.go:50
Method
ResetRankingConfig
ResetRankingConfig 重置榜单配置
internal/service/ranking.go:92
Method
Rollback
执行具有修改性的redis命令,失败自动回滚
internal/repository/cache/redis_cmd.go:22
Method
Rollback
()
internal/repository/cache/redis_cmd.go:90
Method
SearchComment
(ctx *gin.Context, req req.SearchReq)
internal/api/search.go:57
Method
SearchComments
(ctx context.Context, expression string)
internal/service/search.go:26
Method
SearchComments
(ctx context.Context, keywords []string)
internal/repository/search.go:40
Method
SearchComments
(ctx context.Context, keywords []string)
internal/repository/dao/search.go:39
Method
SearchComments
SearchComment 根据关键词搜索评论,返回匹配的结果
internal/repository/dao/search.go:223
Method
SearchPost
(ctx *gin.Context, req req.SearchReq)
internal/api/search.go:43
Method
SearchPosts
(ctx context.Context, expression string)
internal/service/search.go:46
Method
SearchPosts
(ctx context.Context, keywords []string)
internal/repository/search.go:45
Method
SearchPosts
SearchPosts 根据关键词搜索帖子,返回匹配的结果
internal/repository/dao/search.go:266
Method
SearchUser
(ctx *gin.Context, req req.SearchReq)
internal/api/search.go:28
Method
SearchUsers
(ctx context.Context, expression string)
internal/service/search.go:73
Method
SearchUsers
(ctx context.Context, keywords []string)
internal/repository/search.go:50
Method
SearchUsers
SearchUsers 根据关键词搜索用户
internal/repository/dao/search.go:334
Method
SendCode
SendCode mocks base method.
internal/service/mocks/sms.mock.go:55
Method
SendCode
SendCode indicates an expected call of SendCode.
internal/service/mocks/sms.mock.go:63
Method
SendCode
(ctx context.Context, email string)
internal/repository/email.go:14
Method
SendCode
(ctx context.Context, email string)
internal/repository/email.go:32
Method
SendCode
(ctx context.Context, number string)
internal/repository/sms.go:94
Method
SendSMS
SendSMS 发送短信验证码
internal/api/user.go:157
Method
Set
Set 将传入的du结构体序列化存入redis中
internal/repository/cache/comment.go:49
Method
Set
(ctx context.Context, posts []domain.Post)
internal/repository/cache/ranking.go:42
Method
Set
Set 设置帖子缓存,使用随机过期时间防止缓存雪崩
internal/repository/cache/post.go:86
Method
Set
(ctx context.Context, posts []domain.Post)
internal/repository/cache/local.go:19
Method
Set
(ctx context.Context, posts []domain.Post)
internal/repository/cache/local.go:39
Method
Set
获取互动信息
internal/repository/cache/interactive.go:32
Method
Set
Set 存储互动信息
internal/repository/cache/interactive.go:78
Method
Set
Set 将传入的du结构体序列化存入redis中
internal/repository/cache/user.go:61
Method
SetCache
SetCache 将单个审核记录写入缓存
internal/repository/cache/check.go:59
Method
SetCache
(ctx context.Context, key string, relations []domain.Relation, ttl time.Duration)
internal/repository/cache/relation.go:15
Method
SetCache
(ctx context.Context, key string, relations []domain.Relation, ttl time.Duration)
internal/repository/cache/relation.go:50
Method
SetCache
(ctx context.Context, history domain.History)
internal/repository/cache/history.go:27
Method
SetCache
(ctx context.Context, history domain.History)
internal/repository/cache/history.go:97
Method
SetCacheList
(ctx context.Context, key string, checks []domain.Check, ttl time.Duration)
internal/repository/cache/check.go:21
Method
SetCacheList
SetCacheList 将审核记录列表写入缓存
internal/repository/cache/check.go:126
Method
SetCountCache
SetCountCache 将审核记录的数量写入缓存
internal/repository/cache/check.go:156
Method
SetCountCache
(ctx context.Context, key string, count int64, ttl time.Duration)
internal/repository/cache/relation.go:17
Method
SetCountCache
(ctx context.Context, key string, count int64, ttl time.Duration)
internal/repository/cache/relation.go:72
Method
SetEmpty
SetEmpty 缓存空对象,使用较短的过期时间
internal/repository/cache/post.go:110
Method
SetEmptyCache
SetEmptyCache 缓存空对象,防止缓存穿透
pkg/cachep/local/local.go:117
Method
SetEmptyCache
SetEmptyCache 缓存空对象,防止缓存穿透
pkg/cachep/bloom/cachebloom.go:98
Method
SetHistory
SetHistory 设置历史记录
internal/repository/history.go:41
Method
SetList
SetList 设置帖子列表缓存
internal/repository/cache/post.go:217
Method
SetLoginToken
SetLoginToken 设置长短Token
utils/jwt/jwt.go:100
Method
SetLotteryDraw
SetLotteryDraw 将抽奖活动设置到缓存中
internal/repository/cache/lotteryDraw.go:20
Method
SetNX
(ctx context.Context, number string, value interface{}, expiration time.Duration)
internal/repository/sms.go:70
Method
SetNX
SetNX 设置一个不存在的key
internal/repository/cache/sms.go:69
Method
SetPub
SetPub 设置已发布帖子缓存
internal/repository/cache/post.go:403
Method
SetPubList
SetPubList 设置已发布帖子列表缓存
internal/repository/cache/post.go:298
Method
SetRecentActivity
(ctx context.Context, dr domain.RecentActivity)
internal/repository/activity.go:33
Method
SetRecentActivity
(ctx context.Context, mr RecentActivity)
internal/repository/dao/activity.go:49
Method
SetSecondKillEvent
SetSecondKillEvent 将秒杀活动设置到缓存中
internal/repository/cache/lotteryDraw.go:29
Method
Setup
(session sarama.ConsumerGroupSession)
pkg/samarap/handler_batch.go:21
Method
Setup
Setup 在消费组会话开始时调用
pkg/samarap/handler.go:21
Method
Setup
(_ sarama.ConsumerGroupSession)
internal/domain/events/canal/consumer_test.go:146
Method
Setup
(_ sarama.ConsumerGroupSession)
internal/domain/events/es/consumer.go:139
Method
Setup
(session sarama.ConsumerGroupSession)
internal/domain/events/comment/consumer.go:26
Method
Setup
(_ sarama.ConsumerGroupSession)
internal/domain/events/post/consumer.go:79
Method
Setup
(_ sarama.ConsumerGroupSession)
internal/domain/events/post/dlq_processor.go:70
Method
Setup
(_ sarama.ConsumerGroupSession)
internal/domain/events/check/consumer.go:83
Method
Setup
(_ sarama.ConsumerGroupSession)
internal/domain/events/check/dlq_processor.go:65
Method
Setup
(session sarama.ConsumerGroupSession)
internal/domain/events/publish/consumer.go:71
Method
Setup
(_ sarama.ConsumerGroupSession)
internal/domain/events/publish/dlq_process.go:66
Method
SignUp
SignUp 用户注册
internal/service/user.go:50
Method
SignUp
SignUp mocks base method.
internal/service/mocks/user.mock.go:133
Method
SignUp
SignUp indicates an expected call of SignUp.
internal/service/mocks/user.mock.go:141
Method
SignUp
SignUp 用户注册
internal/api/user.go:60
Method
Start
(ctx context.Context)
internal/domain/events/email/consumer.go:24
Method
Start
(ctx context.Context)
internal/domain/events/sms/consumer.go:27
Method
Start
Start 启动消费者,并开始消费 Kafka 中的消息
internal/domain/events/comment/consumer.go:61
Method
Start
(ctx context.Context)
internal/domain/events/post/consumer.go:46
Method
Start
(ctx context.Context)
internal/domain/events/post/dlq_processor.go:37
Method
Start
(ctx context.Context)
internal/domain/events/check/consumer.go:51
Method
Start
(ctx context.Context)
internal/domain/events/check/dlq_processor.go:33
Method
Start
Start 启动消费者,并开始消费 Kafka 中的消息
internal/domain/events/publish/consumer.go:42
Method
Start
(ctx context.Context)
internal/domain/events/publish/dlq_process.go:33
Method
StoreVCode
(ctx context.Context, email, vCode string)
internal/repository/cache/email.go:12
Method
StoreVCode
(ctx context.Context, email, vCode string)
internal/repository/cache/email.go:29
Method
StoreVCode
(ctx context.Context, smsID, number string, vCode string)
internal/repository/cache/sms.go:15
Method
StoreVCode
StoreVCode 存储短信验证码
internal/repository/cache/sms.go:63
Function
SuccessWithDetails
SuccessWithDetails 带详细数据和消息的操作成功返回
pkg/apiresponse/apiresponse.go:135
Function
SuccessWithMessage
SuccessWithMessage 带消息的操作成功返回
pkg/apiresponse/apiresponse.go:125
Method
Swap
Swap 交换两个元素
pkg/priorityqueue/priority_queue.go:46
Function
TestConsumer
(t *testing.T)
internal/domain/events/canal/consumer_test.go:111
Function
TestContent
(t *testing.T)
utils/aicheck/doubao_test.go:14
Function
TestCreatePostIndex
测试CreatePostIndex函数
internal/repository/search_test.go:46
← previous
next →
1,301–1,400 of 1,482, ranked by callers