MCPcopy Create free account

hub / github.com/GoSimplicity/LinkMe / functions

Functions1,482 in github.com/GoSimplicity/LinkMe

↓ 1 callersFunctionNewRelationDAO
NewRelationDAO 创建RelationDAO实例
internal/repository/dao/relation.go:55
↓ 1 callersFunctionNewRelationHandler
(svc service.RelationService)
internal/api/relation.go:26
↓ 1 callersFunctionNewRelationRepository
(dao dao.RelationDAO, cache cache.RelationCache, logger *zap.Logger)
internal/repository/relation.go:28
↓ 1 callersFunctionNewRelationService
(repo repository.RelationRepository)
internal/service/relation.go:22
↓ 1 callersFunctionNewRoleDAO
(db *gorm.DB, l *zap.Logger, enforcer *casbin.Enforcer, permissionDao PermissionDAO)
internal/repository/dao/role.go:47
↓ 1 callersFunctionNewRoleHandler
(svc service.RoleService, menuSvc service.MenuService, apiSvc service.ApiService, permissionSvc service.Permis
internal/api/role.go:22
↓ 1 callersFunctionNewRoleRepository
(l *zap.Logger, dao dao.RoleDAO)
internal/repository/role.go:26
↓ 1 callersFunctionNewRoleService
(repo repository.RoleRepository, permissionRepo repository.PermissionRepository, l *zap.Logger)
internal/service/role.go:34
↓ 1 callersFunctionNewRoutes
(refreshCache *RefreshCacheTask, timedTask *TimedTask)
internal/job/routes.go:10
↓ 1 callersFunctionNewSMSConsumer
(repo repository.SmsRepository, client sarama.Client, l *zap.Logger, rdb cache.SMSCache)
internal/domain/events/sms/consumer.go:23
↓ 1 callersFunctionNewSaramaCheckProducer
(producer sarama.SyncProducer)
internal/domain/events/check/producer.go:28
↓ 1 callersFunctionNewSaramaCommentProducer
(producer sarama.SyncProducer)
internal/domain/events/comment/producer.go:29
↓ 1 callersFunctionNewSaramaSyncProducer
NewSaramaSyncProducer 创建一个新的SaramaSyncProducer实例
internal/domain/events/email/producer.go:28
↓ 1 callersFunctionNewSaramaSyncProducer
(producer sarama.SyncProducer, logger *zap.Logger)
internal/domain/events/sms/producer.go:28
↓ 1 callersFunctionNewSaramaSyncProducer
(producer sarama.SyncProducer)
internal/domain/events/post/producer.go:29
↓ 1 callersFunctionNewSaramaSyncProducer
(producer sarama.SyncProducer, l *zap.Logger)
internal/domain/events/publish/producer.go:28
↓ 1 callersFunctionNewSearchHandler
(svc service.SearchService)
internal/api/search.go:15
↓ 1 callersFunctionNewSearchService
(repo repository.SearchRepository)
internal/service/search.go:21
↓ 1 callersFunctionNewSensitiveFilter
()
utils/contentfilter/contentfilter.go:19
↓ 1 callersFunctionNewTencentSms
(client *tencent.Client, smsID string, signName string, TemplateID string)
pkg/sms/tencentSms.go:18
↓ 1 callersFunctionNewTimedScheduler
(scheduler *asynq.Scheduler)
internal/job/scheduler.go:18
↓ 1 callersFunctionNewTimedTask
(l *zap.Logger, svc interfaces.RankingService)
internal/job/timed_task.go:24
↓ 1 callersFunctionNewUserCache
(cmd redis.Cmdable)
internal/repository/cache/user.go:23
↓ 1 callersFunctionNewUserDAO
(db *gorm.DB, l *zap.Logger, ce *casbin.Enforcer)
internal/repository/dao/user.go:69
↓ 1 callersFunctionNewUserHandler
(svc service.UserService, j ijwt.Handler, smsProducer sms.Producer, emailProducer email.Producer, ce *casbin.E
internal/api/user.go:27
↓ 1 callersFunctionNewUserRepository
(dao dao.UserDAO, cache cache.UserCache, l *zap.Logger)
internal/repository/user.go:37
↓ 1 callersFunctionNewUserService
(repo repository.UserRepository, l *zap.Logger, searchRepo repository.SearchRepository, smsRepo repository.Sms
internal/service/user.go:40
↓ 1 callersMethodNextTime
NextTime 计算任务的下次执行时间
internal/domain/mysql_job.go:18
↓ 1 callersMethodParticipateLotteryDraw
(ctx context.Context, id int, userID int64)
internal/service/lotteryDraw.go:21
↓ 1 callersMethodParticipateSecondKill
(ctx context.Context, id int, userID int64)
internal/service/lotteryDraw.go:27
↓ 1 callersMethodPop
Pop 移除并返回最小元素
pkg/priorityqueue/priority_queue.go:60
↓ 1 callersMethodPreHeat
(ctx context.Context, posts []domain.Post)
internal/repository/cache/post.go:18
↓ 1 callersMethodPreempt
(ctx context.Context)
internal/service/sql_job.go:12
↓ 1 callersMethodPreempt
(ctx context.Context)
internal/repository/sql_job.go:12
↓ 1 callersMethodProduceEmail
(ctx context.Context, evt EmailEvent)
internal/domain/events/email/producer.go:13
↓ 1 callersMethodProduceReadEvent
(evt ReadEvent)
internal/domain/events/post/producer.go:14
↓ 1 callersMethodProduceSMSCode
(ctx context.Context, evt SMSCodeEvent)
internal/domain/events/sms/producer.go:14
↓ 1 callersMethodPublish
(ctx context.Context, postId uint, uid int64)
internal/service/post.go:21
↓ 1 callersMethodPush
Push 添加一个元素
pkg/priorityqueue/priority_queue.go:53
↓ 1 callersMethodRegisterHandlers
()
internal/job/routes.go:17
↓ 1 callersMethodRegisterMetrics
RegisterMetrics 注册所有 Prometheus 指标 包括响应时间SummaryVec和活跃请求数Gauge
pkg/ginp/prometheus/prometheus.go:28
↓ 1 callersMethodRegisterTimedTasks
()
internal/job/scheduler.go:24
↓ 1 callersMethodRejectCheck
(ctx context.Context, checkID int64, remark string, uid int64)
internal/service/check.go:19
↓ 1 callersMethodRelease
(ctx context.Context, jobId int64)
internal/repository/sql_job.go:13
↓ 1 callersMethodRemoveRolePermissions
(ctx context.Context, roleId int)
internal/repository/permission.go:15
↓ 1 callersMethodRemoveUserPermissions
(ctx context.Context, userId int)
internal/repository/permission.go:14
↓ 1 callersMethodRemoveUserPermissions
(ctx context.Context, userId int)
internal/repository/dao/permission.go:19
↓ 1 callersMethodRemoveUsersPermissions
(ctx context.Context, userIds []int)
internal/repository/permission.go:16
↓ 1 callersMethodRemoveUsersPermissions
(ctx context.Context, userIds []int)
internal/repository/dao/permission.go:21
↓ 1 callersMethodReplaceTopN
(ctx context.Context, posts []domain.Post)
internal/repository/ranking.go:13
↓ 1 callersMethodResetRankingConfig
(ctx context.Context, rankingParameter domain.RankingParameter)
internal/service/ranking.go:26
↓ 1 callersMethodSearchComments
(ctx context.Context, keywords []string)
internal/repository/search.go:16
↓ 1 callersMethodSearchPosts
(ctx context.Context, keywords []string)
internal/repository/search.go:17
↓ 1 callersMethodSearchPosts
(ctx context.Context, keywords []string)
internal/repository/dao/search.go:37
↓ 1 callersMethodSearchUsers
搜索文章
internal/repository/search.go:18
↓ 1 callersMethodSearchUsers
(ctx context.Context, keywords []string)
internal/repository/dao/search.go:38
↓ 1 callersMethodSend
Send 发送短信
pkg/sms/tencentSms.go:28
↓ 1 callersFunctionSendEmail
(to string, subject string, body string)
pkg/email/qq.go:8
↓ 1 callersMethodSendEmail
SendEmail 发送邮件验证码
internal/api/user.go:204
↓ 1 callersFunctionSensitiveFilterFun
(content string)
utils/contentfilter/contentfilter.go:147
↓ 1 callersMethodSet
(ctx context.Context, du domain.Comment)
internal/repository/cache/comment.go:15
↓ 1 callersMethodSet
(ctx context.Context, posts []domain.Post)
internal/repository/cache/ranking.go:22
↓ 1 callersMethodSet
(ctx context.Context, du domain.User)
internal/repository/cache/user.go:15
↓ 1 callersMethodSetJWTToken
(ctx *gin.Context, uid int64, ssid string)
utils/jwt/jwt.go:43
↓ 1 callersMethodSetJWTToken
SetJWTToken 设置短Token
utils/jwt/jwt.go:116
↓ 1 callersMethodSetList
(ctx context.Context, page int, size int, posts []domain.Post)
internal/repository/cache/post.go:20
↓ 1 callersMethodSetLotteryDraw
SetLotteryDraw 将抽奖活动设置到缓存中
internal/repository/cache/lotteryDraw.go:95
↓ 1 callersMethodSetPub
(ctx context.Context, key string, post domain.Post)
internal/repository/cache/post.go:26
↓ 1 callersMethodSetPubList
(ctx context.Context, page int, size int, posts []domain.Post)
internal/repository/cache/post.go:23
↓ 1 callersMethodSetRecentActivity
(ctx context.Context, dr domain.RecentActivity)
internal/repository/activity.go:12
↓ 1 callersMethodSetRecentActivity
(ctx context.Context, mr RecentActivity)
internal/repository/dao/activity.go:12
↓ 1 callersMethodSetSecondKillEvent
SetSecondKillEvent 将秒杀活动设置到缓存中
internal/repository/cache/lotteryDraw.go:212
↓ 1 callersMethodSignUp
(ctx context.Context, u domain.User)
internal/service/user.go:22
↓ 1 callersMethodStart
(ctx context.Context)
internal/domain/events/types.go:6
↓ 1 callersMethodStart
Start 启动Kafka消费者,监听消息并进行处理
internal/domain/events/es/consumer.go:111
↓ 1 callersMethodStoreVCode
(ctx context.Context, smsID, number, vCode string)
internal/repository/sms.go:74
↓ 1 callersFunctionToDomainPubPost
ToDomainPubPost 将dao层转化为领域层
pkg/change/change.go:107
↓ 1 callersFunctionUnauthorized
Unauthorized 未认证的返回,使用HTTP 401状态码
pkg/apiresponse/apiresponse.go:180
↓ 1 callersMethodUpdate
(ctx context.Context, post domain.Post)
internal/repository/post.go:24
↓ 1 callersMethodUpdateApi
(ctx context.Context, api *domain.Api)
internal/repository/api.go:14
↓ 1 callersMethodUpdateComment
(ctx context.Context, comment domain.Comment)
internal/repository/comment.go:28
↓ 1 callersMethodUpdateComment
(ctx context.Context, comment Comment)
internal/repository/dao/comment.go:47
↓ 1 callersMethodUpdateLotteryDrawStatus
(ctx context.Context, id int, status string)
internal/repository/lotteryDraw.go:31
↓ 1 callersMethodUpdateMenu
(ctx context.Context, menu *domain.Menu)
internal/repository/menu.go:14
↓ 1 callersMethodUpdateNextTime
(ctx context.Context, id int64, nextTime time.Time)
internal/repository/sql_job.go:15
↓ 1 callersMethodUpdateNextTime
(ctx context.Context, id int64, t time.Time)
internal/repository/dao/sql_job.go:23
↓ 1 callersMethodUpdatePasswordByUsername
(ctx context.Context, username string, newPassword string)
internal/repository/dao/user.go:30
↓ 1 callersMethodUpdatePlate
(ctx context.Context, plate domain.Plate)
internal/repository/plate.go:14
↓ 1 callersMethodUpdateProfile
(ctx context.Context, profile domain.Profile)
internal/repository/user.go:25
↓ 1 callersMethodUpdateProfileAdmin
(ctx context.Context, profile domain.Profile)
internal/repository/user.go:28
↓ 1 callersMethodUpdateRole
(ctx context.Context, role *domain.Role)
internal/repository/role.go:14
↓ 1 callersMethodUpdateSecondKillEventStatus
(ctx context.Context, id int, status string)
internal/repository/lotteryDraw.go:33
↓ 1 callersMethodUpdateStatus
(ctx context.Context, postId uint, uid int64, status uint8)
internal/repository/post.go:25
↓ 1 callersMethodUpdateStatus
(ctx context.Context, check domain.Check)
internal/repository/check.go:13
↓ 1 callersMethodUpdateTime
(ctx context.Context, id int64)
internal/repository/sql_job.go:14
↓ 1 callersMethodUpdateTime
(ctx context.Context, id int64)
internal/repository/dao/sql_job.go:22
↓ 1 callersMethodValidatePassword
ValidatePassword 验证密码格式
internal/domain/user.go:74
↓ 1 callersMethodValidateUsername
ValidateUsername 验证用户名格式
internal/domain/user.go:61
↓ 1 callersMethodVerifyRefreshToken
(ctx *gin.Context, token string)
utils/jwt/jwt.go:46
↓ 1 callersMethodWithdraw
(ctx context.Context, postId uint, uid int64)
internal/service/post.go:22
← previousnext →501–600 of 1,482, ranked by callers