MCPcopy Create free account

hub / github.com/aa12gq/goxenith / functions

Functions337 in github.com/aa12gq/goxenith

MethodFields
()
pkg/model/ent_mixin_time_json_helper.go:17
MethodFields
()
pkg/model/ent_mixin.go:24
MethodFields
Fields of the Comment.
app/models/schema/comment.go:31
MethodFields
Fields of the Link.
app/models/schema/link.go:20
MethodFields
Fields of the User.
app/models/schema/user.go:23
FunctionFileNameWithoutExtension
(fileName string)
pkg/file/file.go:29
MethodFlush
()
pkg/cache/store_redis.go:42
FunctionForever
(key string, value string)
pkg/cache/cache.go:125
MethodForever
(key string, value string)
pkg/cache/store_redis.go:38
MethodForever
(key string, value string)
pkg/cache/store_interface.go:10
MethodForget
(key string)
pkg/cache/store_redis.go:34
MethodGet
(key string)
pkg/cache/store_redis.go:26
MethodGet
(key string)
pkg/cache/store_interface.go:7
MethodGet
Get 获取 key 对应的 value
pkg/redis/redis.go:69
MethodGetArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:151
FunctionGetBool
(key string)
pkg/cache/cache.go:61
MethodGetCategory
(ctx *gin.Context)
app/http/controllers/api/v1/category_controller.go:136
MethodGetChildComments
GetChildComments 获取指定父评论下的子评论
app/http/controllers/api/v1/comment_controller.go:107
MethodGetCollectedArticles
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:527
MethodGetComments
GetComments 仅加载一级评论
app/http/controllers/api/v1/comment_controller.go:72
FunctionGetDuration
(key string)
pkg/cache/cache.go:97
FunctionGetFloat64
(key string)
pkg/cache/cache.go:89
MethodGetFullCommentTree
GetFullCommentTree 获取整个评论树
app/http/controllers/api/v1/comment_controller.go:135
FunctionGetInt32
(key string)
pkg/cache/cache.go:69
FunctionGetInt64
(key string)
pkg/cache/cache.go:73
FunctionGetIntSlice
(key string)
pkg/cache/cache.go:101
MethodGetMaterialCategoryTree
(ctx *gin.Context)
app/http/controllers/api/v1/category_controller.go:153
FunctionGetString
(key string)
pkg/cache/cache.go:57
FunctionGetStringMap
(key string)
pkg/cache/cache.go:109
FunctionGetStringMapString
(key string)
pkg/cache/cache.go:113
FunctionGetStringMapStringSlice
(key string)
pkg/cache/cache.go:117
FunctionGetTime
(key string)
pkg/cache/cache.go:93
FunctionGetUint
(key string)
pkg/cache/cache.go:77
FunctionGetUint
GetUint 获取 Uint 类型的配置信息
pkg/config/config.go:121
FunctionGetUint32
(key string)
pkg/cache/cache.go:81
FunctionGetUint64
(key string)
pkg/cache/cache.go:85
MethodGetUserInfo
(ctx *gin.Context)
app/http/controllers/api/v1/users_controller.go:32
MethodHas
(key string)
pkg/cache/store_redis.go:30
MethodHas
Has 判断一个 key 是否存在,内部错误和 redis.Nil 都返回 false
pkg/redis/redis.go:81
MethodHooks
Hooks 定义通用的hook. 注意: 需要在对应的shema client初始化之前引入相关schema ent下的runtime包进行hook注册: import( _ "rd.nuggets.com/project_a/app/app1/internal/data/schema1/
pkg/model/ent_mixin_time_json_helper.go:35
MethodHooks
Hooks 定义通用的hook. 注意: 需要在对应的shema client初始化之前引入相关schema ent下的runtime包进行hook注册: import( _ "rd.nuggets.com/project_a/app/app1/internal/data/schema1/
pkg/model/ent_mixin.go:42
FunctionImageUpload
(data interface{}, c *gin.Context)
app/requests/image_request.go:13
FunctionIncrement
(parameters ...interface{})
pkg/cache/cache.go:133
MethodIncrement
(parameters ...interface{})
pkg/cache/store_redis.go:46
MethodIncrement
Increment 当参数只有 1 个时,为 key,其值增加 1。 当参数有 2 个时,第一个参数为 key ,第二个参数为要增加的值 int64 类型。
pkg/redis/redis.go:112
MethodIndex
(ctx *gin.Context)
app/http/controllers/api/v1/links_controller.go:19
MethodIndexes
()
app/models/schema/like_record.go:31
MethodIndexes
()
app/models/schema/category.go:50
MethodIndexes
Indexes of the Article.
app/models/schema/article.go:24
FunctionInfo
Info 告知类日志
pkg/logger/logger.go:153
FunctionInfoJSON
(moduleName, name string, value interface{})
pkg/logger/logger.go:202
FunctionInfoString
(moduleName, name, msg string)
pkg/logger/logger.go:179
FunctionInitialize
Initialize 触发加载 config 包的所有 init 函数
config/config.go:4
FunctionIsAlive
()
pkg/cache/cache.go:141
MethodIsAlive
()
pkg/cache/store_redis.go:54
MethodIsEmailExist
IsEmailExist 检测邮箱是否已注册
app/http/controllers/api/v1/auth/signup_controller.go:41
MethodIsPhoneExist
IsPhoneExist 检测手机号是否被注册
app/http/controllers/api/v1/auth/signup_controller.go:23
MethodLikeArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:239
MethodListArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:77
MethodListArticlesForUser
(ctx *gin.Context)
app/http/controllers/api/v1/users_controller.go:172
MethodListCategory
(ctx *gin.Context)
app/http/controllers/api/v1/category_controller.go:110
FunctionLogInfoIf
LogInfoIf 当 err != nil 时记录 info 等级的日志
pkg/logger/logger.go:138
FunctionLoginByPassword
LoginByPassword 验证表单,返回长度等于零即通过
app/requests/login_request.go:38
MethodLoginByPassword
LoginByPassword 多种方法登录,支持手机号、email 和用户名
app/http/controllers/api/v1/auth/login_controller.go:45
FunctionLoginByPhone
LoginByPhone 验证表单,返回长度等于零即通过
app/requests/login_request.go:11
MethodLoginByPhone
LoginByPhone 手机登录
app/http/controllers/api/v1/auth/login_controller.go:23
FunctionMigrate
(cmd *cobra.Command, args []string)
app/cmd/migrate/migrate.go:14
MethodMixin
()
app/models/schema/like_record.go:17
MethodMixin
()
app/models/schema/comment.go:24
MethodMixin
()
app/models/schema/category.go:18
MethodMixin
()
app/models/schema/article.go:17
MethodMixin
()
app/models/schema/link.go:13
MethodMixin
()
app/models/schema/user.go:16
MethodRefreshToken
RefreshToken 更新 Token,用以提供 refresh token 接口
pkg/auth/jwt.go:96
MethodRefreshToken
RefreshToken 刷新 Access Token
app/http/controllers/api/v1/auth/login_controller.go:81
FunctionRunWeb
(cmd *cobra.Command, args []string)
app/cmd/serve/serve.go:13
MethodScan
Scan 实现sql Scanner接口
pkg/model/base_model.go:66
MethodSend
Send 实现 sms.Driver interface 的 Send 方法
pkg/sms/driver_aliyun.go:13
MethodSend
(phone string, message Message)
pkg/sms/sms.go:38
MethodSend
发送短信
pkg/sms/driver_interface.go:5
MethodSend
Send 实现 email.Driver interface 的 Send 方法
pkg/mail/driver_smtp.go:15
MethodSend
(email Email)
pkg/mail/mail.go:41
MethodSendUsingEmail
SendUsingEmail 发送 Email 验证码
app/http/controllers/api/v1/auth/verify_code_controller.go:41
MethodSendUsingPhone
SendUsingPhone 发送手机验证码
app/http/controllers/api/v1/auth/verify_code_controller.go:26
MethodSet
(key string, value string, expireTime time.Duration)
pkg/cache/store_redis.go:22
MethodSet
(key string, value string, expireTime time.Duration)
pkg/cache/store_interface.go:6
MethodSet
Set 实现 base64Captcha.Store interface 的 Set 方法
pkg/captcha/store_redis.go:18
MethodSet
Set 存储 key 对应的 value,且设置 expiration 过期时间
pkg/redis/redis.go:60
MethodSet
Set 实现 verifycode.Store interface 的 Set 方法
pkg/verifycode/store_redis.go:17
MethodShowCaptcha
ShowCaptcha 显示图片验证码
app/http/controllers/api/v1/auth/verify_code_controller.go:19
FunctionSignupEmailExist
(data interface{}, c *gin.Context)
app/requests/signup_request.go:27
FunctionSignupPhoneExist
(data interface{}, c *gin.Context)
app/requests/signup_request.go:11
FunctionSignupUsingEmail
(data interface{}, c *gin.Context)
app/requests/signup_request.go:121
MethodSignupUsingEmail
(c *gin.Context)
app/http/controllers/api/v1/auth/signup_controller.go:90
FunctionSignupUsingPhone
(data interface{}, c *gin.Context)
app/requests/signup_request.go:80
MethodSignupUsingPhone
SignupUsingPhone 使用手机和验证码进行注册
app/http/controllers/api/v1/auth/signup_controller.go:59
MethodToggleCollectArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:477
MethodUpdateArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:174
MethodUpdatePassword
(ctx *gin.Context)
app/http/controllers/api/v1/users_controller.go:122
MethodUpdateUserAvatar
(ctx *gin.Context)
app/http/controllers/api/v1/users_controller.go:91
← previousnext →201–300 of 337, ranked by callers