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
↓ 1 callers
Function
NewRelationDAO
NewRelationDAO 创建RelationDAO实例
internal/repository/dao/relation.go:55
↓ 1 callers
Function
NewRelationHandler
(svc service.RelationService)
internal/api/relation.go:26
↓ 1 callers
Function
NewRelationRepository
(dao dao.RelationDAO, cache cache.RelationCache, logger *zap.Logger)
internal/repository/relation.go:28
↓ 1 callers
Function
NewRelationService
(repo repository.RelationRepository)
internal/service/relation.go:22
↓ 1 callers
Function
NewRoleDAO
(db *gorm.DB, l *zap.Logger, enforcer *casbin.Enforcer, permissionDao PermissionDAO)
internal/repository/dao/role.go:47
↓ 1 callers
Function
NewRoleHandler
(svc service.RoleService, menuSvc service.MenuService, apiSvc service.ApiService, permissionSvc service.Permis
internal/api/role.go:22
↓ 1 callers
Function
NewRoleRepository
(l *zap.Logger, dao dao.RoleDAO)
internal/repository/role.go:26
↓ 1 callers
Function
NewRoleService
(repo repository.RoleRepository, permissionRepo repository.PermissionRepository, l *zap.Logger)
internal/service/role.go:34
↓ 1 callers
Function
NewRoutes
(refreshCache *RefreshCacheTask, timedTask *TimedTask)
internal/job/routes.go:10
↓ 1 callers
Function
NewSMSConsumer
(repo repository.SmsRepository, client sarama.Client, l *zap.Logger, rdb cache.SMSCache)
internal/domain/events/sms/consumer.go:23
↓ 1 callers
Function
NewSaramaCheckProducer
(producer sarama.SyncProducer)
internal/domain/events/check/producer.go:28
↓ 1 callers
Function
NewSaramaCommentProducer
(producer sarama.SyncProducer)
internal/domain/events/comment/producer.go:29
↓ 1 callers
Function
NewSaramaSyncProducer
NewSaramaSyncProducer 创建一个新的SaramaSyncProducer实例
internal/domain/events/email/producer.go:28
↓ 1 callers
Function
NewSaramaSyncProducer
(producer sarama.SyncProducer, logger *zap.Logger)
internal/domain/events/sms/producer.go:28
↓ 1 callers
Function
NewSaramaSyncProducer
(producer sarama.SyncProducer)
internal/domain/events/post/producer.go:29
↓ 1 callers
Function
NewSaramaSyncProducer
(producer sarama.SyncProducer, l *zap.Logger)
internal/domain/events/publish/producer.go:28
↓ 1 callers
Function
NewSearchHandler
(svc service.SearchService)
internal/api/search.go:15
↓ 1 callers
Function
NewSearchService
(repo repository.SearchRepository)
internal/service/search.go:21
↓ 1 callers
Function
NewSensitiveFilter
()
utils/contentfilter/contentfilter.go:19
↓ 1 callers
Function
NewTencentSms
(client *tencent.Client, smsID string, signName string, TemplateID string)
pkg/sms/tencentSms.go:18
↓ 1 callers
Function
NewTimedScheduler
(scheduler *asynq.Scheduler)
internal/job/scheduler.go:18
↓ 1 callers
Function
NewTimedTask
(l *zap.Logger, svc interfaces.RankingService)
internal/job/timed_task.go:24
↓ 1 callers
Function
NewUserCache
(cmd redis.Cmdable)
internal/repository/cache/user.go:23
↓ 1 callers
Function
NewUserDAO
(db *gorm.DB, l *zap.Logger, ce *casbin.Enforcer)
internal/repository/dao/user.go:69
↓ 1 callers
Function
NewUserHandler
(svc service.UserService, j ijwt.Handler, smsProducer sms.Producer, emailProducer email.Producer, ce *casbin.E
internal/api/user.go:27
↓ 1 callers
Function
NewUserRepository
(dao dao.UserDAO, cache cache.UserCache, l *zap.Logger)
internal/repository/user.go:37
↓ 1 callers
Function
NewUserService
(repo repository.UserRepository, l *zap.Logger, searchRepo repository.SearchRepository, smsRepo repository.Sms
internal/service/user.go:40
↓ 1 callers
Method
NextTime
NextTime 计算任务的下次执行时间
internal/domain/mysql_job.go:18
↓ 1 callers
Method
ParticipateLotteryDraw
(ctx context.Context, id int, userID int64)
internal/service/lotteryDraw.go:21
↓ 1 callers
Method
ParticipateSecondKill
(ctx context.Context, id int, userID int64)
internal/service/lotteryDraw.go:27
↓ 1 callers
Method
Pop
Pop 移除并返回最小元素
pkg/priorityqueue/priority_queue.go:60
↓ 1 callers
Method
PreHeat
(ctx context.Context, posts []domain.Post)
internal/repository/cache/post.go:18
↓ 1 callers
Method
Preempt
(ctx context.Context)
internal/service/sql_job.go:12
↓ 1 callers
Method
Preempt
(ctx context.Context)
internal/repository/sql_job.go:12
↓ 1 callers
Method
ProduceEmail
(ctx context.Context, evt EmailEvent)
internal/domain/events/email/producer.go:13
↓ 1 callers
Method
ProduceReadEvent
(evt ReadEvent)
internal/domain/events/post/producer.go:14
↓ 1 callers
Method
ProduceSMSCode
(ctx context.Context, evt SMSCodeEvent)
internal/domain/events/sms/producer.go:14
↓ 1 callers
Method
Publish
(ctx context.Context, postId uint, uid int64)
internal/service/post.go:21
↓ 1 callers
Method
Push
Push 添加一个元素
pkg/priorityqueue/priority_queue.go:53
↓ 1 callers
Method
RegisterHandlers
()
internal/job/routes.go:17
↓ 1 callers
Method
RegisterMetrics
RegisterMetrics 注册所有 Prometheus 指标 包括响应时间SummaryVec和活跃请求数Gauge
pkg/ginp/prometheus/prometheus.go:28
↓ 1 callers
Method
RegisterTimedTasks
()
internal/job/scheduler.go:24
↓ 1 callers
Method
RejectCheck
(ctx context.Context, checkID int64, remark string, uid int64)
internal/service/check.go:19
↓ 1 callers
Method
Release
(ctx context.Context, jobId int64)
internal/repository/sql_job.go:13
↓ 1 callers
Method
RemoveRolePermissions
(ctx context.Context, roleId int)
internal/repository/permission.go:15
↓ 1 callers
Method
RemoveUserPermissions
(ctx context.Context, userId int)
internal/repository/permission.go:14
↓ 1 callers
Method
RemoveUserPermissions
(ctx context.Context, userId int)
internal/repository/dao/permission.go:19
↓ 1 callers
Method
RemoveUsersPermissions
(ctx context.Context, userIds []int)
internal/repository/permission.go:16
↓ 1 callers
Method
RemoveUsersPermissions
(ctx context.Context, userIds []int)
internal/repository/dao/permission.go:21
↓ 1 callers
Method
ReplaceTopN
(ctx context.Context, posts []domain.Post)
internal/repository/ranking.go:13
↓ 1 callers
Method
ResetRankingConfig
(ctx context.Context, rankingParameter domain.RankingParameter)
internal/service/ranking.go:26
↓ 1 callers
Method
SearchComments
(ctx context.Context, keywords []string)
internal/repository/search.go:16
↓ 1 callers
Method
SearchPosts
(ctx context.Context, keywords []string)
internal/repository/search.go:17
↓ 1 callers
Method
SearchPosts
(ctx context.Context, keywords []string)
internal/repository/dao/search.go:37
↓ 1 callers
Method
SearchUsers
搜索文章
internal/repository/search.go:18
↓ 1 callers
Method
SearchUsers
(ctx context.Context, keywords []string)
internal/repository/dao/search.go:38
↓ 1 callers
Method
Send
Send 发送短信
pkg/sms/tencentSms.go:28
↓ 1 callers
Function
SendEmail
(to string, subject string, body string)
pkg/email/qq.go:8
↓ 1 callers
Method
SendEmail
SendEmail 发送邮件验证码
internal/api/user.go:204
↓ 1 callers
Function
SensitiveFilterFun
(content string)
utils/contentfilter/contentfilter.go:147
↓ 1 callers
Method
Set
(ctx context.Context, du domain.Comment)
internal/repository/cache/comment.go:15
↓ 1 callers
Method
Set
(ctx context.Context, posts []domain.Post)
internal/repository/cache/ranking.go:22
↓ 1 callers
Method
Set
(ctx context.Context, du domain.User)
internal/repository/cache/user.go:15
↓ 1 callers
Method
SetJWTToken
(ctx *gin.Context, uid int64, ssid string)
utils/jwt/jwt.go:43
↓ 1 callers
Method
SetJWTToken
SetJWTToken 设置短Token
utils/jwt/jwt.go:116
↓ 1 callers
Method
SetList
(ctx context.Context, page int, size int, posts []domain.Post)
internal/repository/cache/post.go:20
↓ 1 callers
Method
SetLotteryDraw
SetLotteryDraw 将抽奖活动设置到缓存中
internal/repository/cache/lotteryDraw.go:95
↓ 1 callers
Method
SetPub
(ctx context.Context, key string, post domain.Post)
internal/repository/cache/post.go:26
↓ 1 callers
Method
SetPubList
(ctx context.Context, page int, size int, posts []domain.Post)
internal/repository/cache/post.go:23
↓ 1 callers
Method
SetRecentActivity
(ctx context.Context, dr domain.RecentActivity)
internal/repository/activity.go:12
↓ 1 callers
Method
SetRecentActivity
(ctx context.Context, mr RecentActivity)
internal/repository/dao/activity.go:12
↓ 1 callers
Method
SetSecondKillEvent
SetSecondKillEvent 将秒杀活动设置到缓存中
internal/repository/cache/lotteryDraw.go:212
↓ 1 callers
Method
SignUp
(ctx context.Context, u domain.User)
internal/service/user.go:22
↓ 1 callers
Method
Start
(ctx context.Context)
internal/domain/events/types.go:6
↓ 1 callers
Method
Start
Start 启动Kafka消费者,监听消息并进行处理
internal/domain/events/es/consumer.go:111
↓ 1 callers
Method
StoreVCode
(ctx context.Context, smsID, number, vCode string)
internal/repository/sms.go:74
↓ 1 callers
Function
ToDomainPubPost
ToDomainPubPost 将dao层转化为领域层
pkg/change/change.go:107
↓ 1 callers
Function
Unauthorized
Unauthorized 未认证的返回,使用HTTP 401状态码
pkg/apiresponse/apiresponse.go:180
↓ 1 callers
Method
Update
(ctx context.Context, post domain.Post)
internal/repository/post.go:24
↓ 1 callers
Method
UpdateApi
(ctx context.Context, api *domain.Api)
internal/repository/api.go:14
↓ 1 callers
Method
UpdateComment
(ctx context.Context, comment domain.Comment)
internal/repository/comment.go:28
↓ 1 callers
Method
UpdateComment
(ctx context.Context, comment Comment)
internal/repository/dao/comment.go:47
↓ 1 callers
Method
UpdateLotteryDrawStatus
(ctx context.Context, id int, status string)
internal/repository/lotteryDraw.go:31
↓ 1 callers
Method
UpdateMenu
(ctx context.Context, menu *domain.Menu)
internal/repository/menu.go:14
↓ 1 callers
Method
UpdateNextTime
(ctx context.Context, id int64, nextTime time.Time)
internal/repository/sql_job.go:15
↓ 1 callers
Method
UpdateNextTime
(ctx context.Context, id int64, t time.Time)
internal/repository/dao/sql_job.go:23
↓ 1 callers
Method
UpdatePasswordByUsername
(ctx context.Context, username string, newPassword string)
internal/repository/dao/user.go:30
↓ 1 callers
Method
UpdatePlate
(ctx context.Context, plate domain.Plate)
internal/repository/plate.go:14
↓ 1 callers
Method
UpdateProfile
(ctx context.Context, profile domain.Profile)
internal/repository/user.go:25
↓ 1 callers
Method
UpdateProfileAdmin
(ctx context.Context, profile domain.Profile)
internal/repository/user.go:28
↓ 1 callers
Method
UpdateRole
(ctx context.Context, role *domain.Role)
internal/repository/role.go:14
↓ 1 callers
Method
UpdateSecondKillEventStatus
(ctx context.Context, id int, status string)
internal/repository/lotteryDraw.go:33
↓ 1 callers
Method
UpdateStatus
(ctx context.Context, postId uint, uid int64, status uint8)
internal/repository/post.go:25
↓ 1 callers
Method
UpdateStatus
(ctx context.Context, check domain.Check)
internal/repository/check.go:13
↓ 1 callers
Method
UpdateTime
(ctx context.Context, id int64)
internal/repository/sql_job.go:14
↓ 1 callers
Method
UpdateTime
(ctx context.Context, id int64)
internal/repository/dao/sql_job.go:22
↓ 1 callers
Method
ValidatePassword
ValidatePassword 验证密码格式
internal/domain/user.go:74
↓ 1 callers
Method
ValidateUsername
ValidateUsername 验证用户名格式
internal/domain/user.go:61
↓ 1 callers
Method
VerifyRefreshToken
(ctx *gin.Context, token string)
utils/jwt/jwt.go:46
↓ 1 callers
Method
Withdraw
(ctx context.Context, postId uint, uid int64)
internal/service/post.go:22
← previous
next →
501–600 of 1,482, ranked by callers