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
↓ 2 callers
Function
BadRequest
BadRequest 参数错误的返回,使用HTTP 400状态码
pkg/apiresponse/apiresponse.go:160
↓ 2 callers
Function
CacheData
CacheData 序列化数据并存储到 Redis 和布隆过滤器中
pkg/cachep/bloom/cachebloom.go:71
↓ 2 callers
Method
CancelFollowUser
(ctx context.Context, followerID, followeeID int64)
internal/service/relation.go:13
↓ 2 callers
Method
ChangePassword
(ctx context.Context, username string, password string, newPassword string, confirmPassword string)
internal/service/user.go:25
↓ 2 callers
Method
CheckCasbin
CheckCasbin 创建一个 Casbin 中间件
middleware/role.go:23
↓ 2 callers
Method
ClearFollowCache
(ctx context.Context, followerID, followeeID int64)
internal/repository/cache/relation.go:18
↓ 2 callers
Method
ClearToken
(ctx *gin.Context)
utils/jwt/jwt.go:47
↓ 2 callers
Method
Count
(ctx context.Context, number string)
internal/repository/sms.go:29
↓ 2 callers
Method
CreateApi
(ctx context.Context, api *domain.Api)
internal/service/api.go:13
↓ 2 callers
Method
CreateComment
(ctx context.Context, comment domain.Comment)
internal/service/comment.go:22
↓ 2 callers
Method
CreateLotteryDraw
(ctx context.Context, input domain.LotteryDraw)
internal/service/lotteryDraw.go:19
↓ 2 callers
Method
CreateMenu
(ctx context.Context, menu *domain.Menu)
internal/service/menu.go:14
↓ 2 callers
Method
CreatePlate
(ctx context.Context, plate domain.Plate)
internal/service/plate.go:11
↓ 2 callers
Method
CreateRole
(ctx context.Context, role *domain.Role, menuIds []int, apiIds []int)
internal/service/role.go:19
↓ 2 callers
Method
CreateSecondKillEvent
(ctx context.Context, input domain.SecondKillEvent)
internal/service/lotteryDraw.go:25
↓ 2 callers
Method
DecrLike
(ctx context.Context, postId uint, uid int64)
internal/repository/interactive.go:18
↓ 2 callers
Method
DelList
(ctx context.Context, key string)
internal/repository/cache/post.go:21
↓ 2 callers
Method
DelPub
(ctx context.Context, key string)
internal/repository/cache/post.go:27
↓ 2 callers
Method
DelPubList
(ctx context.Context, key string)
internal/repository/cache/post.go:24
↓ 2 callers
Method
DeleteAllHistory
(ctx context.Context, uid int64)
internal/service/history.go:14
↓ 2 callers
Method
DeleteApi
(ctx context.Context, id int)
internal/service/api.go:16
↓ 2 callers
Method
DeleteComment
(ctx context.Context, commentId int64)
internal/service/comment.go:23
↓ 2 callers
Method
DeleteMenu
(ctx context.Context, id int)
internal/service/menu.go:17
↓ 2 callers
Method
DeleteOneHistory
(ctx context.Context, postId uint, uid int64)
internal/service/history.go:13
↓ 2 callers
Method
DeletePlate
(ctx context.Context, plateId int64, uid int64)
internal/service/plate.go:14
↓ 2 callers
Method
DeleteRole
(ctx context.Context, id int)
internal/service/role.go:22
↓ 2 callers
Method
DeleteRole
(ctx context.Context, id int)
internal/repository/dao/role.go:34
↓ 2 callers
Method
DeleteUser
(ctx context.Context, username string, password string, uid int64)
internal/service/user.go:26
↓ 2 callers
Method
DeleteUserIndex
(ctx context.Context, userId int64)
internal/repository/dao/search.go:50
↓ 2 callers
Method
Dequeue
Dequeue 移除并返回最小元素
pkg/priorityqueue/priority_queue.go:81
↓ 2 callers
Method
FindByUsername
(ctx context.Context, username string)
internal/repository/user.go:22
↓ 2 callers
Method
FollowCount
(ctx context.Context, userID int64)
internal/repository/dao/relation.go:25
↓ 2 callers
Method
FollowUser
(ctx context.Context, followerID, followeeID int64)
internal/service/relation.go:12
↓ 2 callers
Function
FromDomainPost
FromDomainPost 将领域层对象转为dao层对象
pkg/change/change.go:12
↓ 2 callers
Method
GenerateCacheKey
(id interface{})
internal/repository/cache/check.go:24
↓ 2 callers
Method
GenerateCacheKey
(userID int64, relationType string, pagination domain.Pagination)
internal/repository/cache/relation.go:98
↓ 2 callers
Method
GenerateCountCacheKey
()
internal/repository/cache/check.go:26
↓ 2 callers
Method
GenerateCountCacheKey
(userID int64, relationType string)
internal/repository/cache/relation.go:104
↓ 2 callers
Method
GetCountCache
(ctx context.Context, key string)
internal/repository/cache/check.go:22
↓ 2 callers
Method
GetFolloweeCount
(ctx context.Context, UserID int64)
internal/service/relation.go:14
↓ 2 callers
Method
GetFollowerCount
(ctx context.Context, UserID int64)
internal/service/relation.go:15
↓ 2 callers
Method
GetHistory
(ctx context.Context, pagination domain.Pagination)
internal/service/history.go:12
↓ 2 callers
Method
GetMenuTree
(ctx context.Context)
internal/service/menu.go:18
↓ 2 callers
Method
GetPost
(ctx context.Context, postId uint)
internal/service/post.go:29
↓ 2 callers
Method
GetPostsByPlate
(ctx context.Context, plateId int64, pagination domain.Pagination)
internal/service/post.go:31
↓ 2 callers
Method
GetPostsCount
(ctx context.Context)
internal/service/post.go:30
↓ 2 callers
Method
GetPublishPostById
(ctx context.Context, postId uint, uid int64)
internal/service/post.go:24
↓ 2 callers
Method
GetRecentActivity
(ctx context.Context)
internal/service/activity.go:11
↓ 2 callers
Method
GetRole
(ctx context.Context, roleId int)
internal/service/role.go:25
↓ 2 callers
Method
GetTopCommentsReply
(ctx context.Context, postId int64)
internal/service/comment.go:26
↓ 2 callers
Method
GetTopN
(ctx context.Context)
internal/service/ranking.go:24
↓ 2 callers
Method
GetUserRole
(ctx context.Context, userId int)
internal/service/role.go:24
↓ 2 callers
Method
GetVCode
(ctx context.Context, smsID, number string)
internal/repository/cache/sms.go:14
↓ 2 callers
Method
IncrCnt
(ctx context.Context, number string)
internal/repository/sms.go:30
↓ 2 callers
Method
IncrReadCnt
(ctx context.Context, postId uint)
internal/repository/dao/interactive.go:29
↓ 2 callers
Function
InitDB
InitDB 初始化数据库
ioc/db.go:21
↓ 2 callers
Function
InitLogger
()
ioc/logger.go:14
↓ 2 callers
Function
InitRedis
()
ioc/redis.go:10
↓ 2 callers
Function
InitSms
InitSms 初始化腾讯云短信实例
ioc/sms.go:31
↓ 2 callers
Method
InputComment
(ctx context.Context, comment CommentSearch)
internal/repository/dao/search.go:46
↓ 2 callers
Method
InputPost
(ctx context.Context, post PostSearch)
internal/repository/dao/search.go:45
↓ 2 callers
Method
IsEmpty
IsEmpty 检查是否存在空对象标记
internal/repository/cache/post.go:120
↓ 2 callers
Method
ListApis
(ctx context.Context, page, pageSize int)
internal/service/api.go:17
↓ 2 callers
Method
ListComments
(ctx context.Context, postId, minID, limit int64)
internal/service/comment.go:24
↓ 2 callers
Method
ListFolloweeRelations
(ctx context.Context, followeeID int64, pagination domain.Pagination)
internal/service/relation.go:11
↓ 2 callers
Method
ListFollowerRelations
(ctx context.Context, followerID int64, pagination domain.Pagination)
internal/service/relation.go:10
↓ 2 callers
Method
ListLotteryDraws
抽奖活动相关方法
internal/service/lotteryDraw.go:18
↓ 2 callers
Method
ListPlate
(ctx context.Context, pagination domain.Pagination)
internal/service/plate.go:12
↓ 2 callers
Method
ListPosts
(ctx context.Context, pagination domain.Pagination)
internal/service/post.go:26
↓ 2 callers
Method
ListRoles
(ctx context.Context, page, pageSize int)
internal/service/role.go:23
↓ 2 callers
Method
ListSecondKillEvents
秒杀活动相关方法
internal/service/lotteryDraw.go:24
↓ 2 callers
Method
ListUser
(ctx context.Context, pagination domain.Pagination)
internal/service/user.go:29
↓ 2 callers
Function
NewCasbinMiddleware
(enforcer *casbin.Enforcer)
middleware/role.go:16
↓ 2 callers
Function
NewEsConsumer
NewEsConsumer 创建并返回一个新的EsConsumer实例
internal/domain/events/es/consumer.go:99
↓ 2 callers
Function
NewHandler
NewHandler 创建一个新的 Handler 实例
pkg/samarap/handler.go:16
↓ 2 callers
Function
NewSMSCache
(client redis.Cmdable)
internal/repository/cache/sms.go:27
↓ 2 callers
Function
NewSearchRepository
(dao dao.SearchDAO)
internal/repository/search.go:34
↓ 2 callers
Function
NewSmsDAO
(db *gorm.DB, l *zap.Logger)
internal/repository/dao/sms.go:36
↓ 2 callers
Function
NewSmsRepository
NewSmsRepository 创建并返回一个新的 smsRepository 实例
internal/repository/sms.go:44
↓ 2 callers
Method
ProduceCheckEvent
(evt CheckEvent)
internal/domain/events/check/producer.go:12
↓ 2 callers
Method
ProduceCommentEvent
(evt CommentEvent)
internal/domain/events/comment/producer.go:12
↓ 2 callers
Method
RemoveRolePermissions
(ctx context.Context, roleId int)
internal/repository/dao/permission.go:20
↓ 2 callers
Method
SearchComments
(ctx context.Context, expression string)
internal/service/search.go:18
↓ 2 callers
Method
SearchPosts
(ctx context.Context, expression string)
internal/service/search.go:16
↓ 2 callers
Method
SearchUsers
(ctx context.Context, expression string)
internal/service/search.go:17
↓ 2 callers
Method
Set
Set 缓存数据到本地缓存和 Redis
pkg/cachep/local/local.go:26
↓ 2 callers
Method
SetCountCache
(ctx context.Context, key string, count int64, ttl time.Duration)
internal/repository/cache/check.go:23
↓ 2 callers
Method
SetEmpty
(ctx context.Context, key string)
internal/repository/cache/post.go:28
↓ 2 callers
Method
SetHistory
(ctx context.Context, post domain.Post)
internal/repository/history.go:13
↓ 2 callers
Method
SetLoginToken
(ctx *gin.Context, uid int64)
utils/jwt/jwt.go:42
↓ 2 callers
Method
SetNX
(ctx context.Context, number string, value interface{}, expiration time.Duration)
internal/repository/sms.go:26
↓ 2 callers
Method
StoreVCode
(ctx context.Context, smsID, number string, vCode string)
internal/repository/sms.go:27
↓ 2 callers
Method
TrackActiveRequestsMiddleware
TrackActiveRequestsMiddleware 返回一个 Gin 中间件,用于跟踪活跃 HTTP 请求数
pkg/ginp/prometheus/prometheus.go:80
↓ 2 callers
Method
TrackResponseTimeMiddleware
TrackResponseTimeMiddleware 返回一个 Gin 中间件,用于跟踪 HTTP 请求的响应时间
pkg/ginp/prometheus/prometheus.go:62
↓ 2 callers
Method
UpdateApi
(ctx context.Context, api *domain.Api)
internal/service/api.go:15
↓ 2 callers
Method
UpdateMenu
(ctx context.Context, menu *domain.Menu)
internal/service/menu.go:16
↓ 2 callers
Method
UpdatePlate
(ctx context.Context, plate domain.Plate)
internal/service/plate.go:13
↓ 2 callers
Method
UpdateProfile
(ctx context.Context, profile domain.Profile)
internal/service/user.go:27
↓ 2 callers
Method
UpdateProfileAdmin
(ctx context.Context, profile domain.Profile)
internal/service/user.go:30
↓ 2 callers
Method
UpdateRole
(ctx context.Context, role *domain.Role)
internal/service/role.go:21
← previous
next →
101–200 of 1,482, ranked by callers