Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aa12gq/goxenith
/ functions
Functions
337 in github.com/aa12gq/goxenith
⨍
Functions
337
◇
Types & classes
56
Method
Fields
()
pkg/model/ent_mixin_time_json_helper.go:17
Method
Fields
()
pkg/model/ent_mixin.go:24
Method
Fields
Fields of the Comment.
app/models/schema/comment.go:31
Method
Fields
Fields of the Link.
app/models/schema/link.go:20
Method
Fields
Fields of the User.
app/models/schema/user.go:23
Function
FileNameWithoutExtension
(fileName string)
pkg/file/file.go:29
Method
Flush
()
pkg/cache/store_redis.go:42
Function
Forever
(key string, value string)
pkg/cache/cache.go:125
Method
Forever
(key string, value string)
pkg/cache/store_redis.go:38
Method
Forever
(key string, value string)
pkg/cache/store_interface.go:10
Method
Forget
(key string)
pkg/cache/store_redis.go:34
Method
Get
(key string)
pkg/cache/store_redis.go:26
Method
Get
(key string)
pkg/cache/store_interface.go:7
Method
Get
Get 获取 key 对应的 value
pkg/redis/redis.go:69
Method
GetArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:151
Function
GetBool
(key string)
pkg/cache/cache.go:61
Method
GetCategory
(ctx *gin.Context)
app/http/controllers/api/v1/category_controller.go:136
Method
GetChildComments
GetChildComments 获取指定父评论下的子评论
app/http/controllers/api/v1/comment_controller.go:107
Method
GetCollectedArticles
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:527
Method
GetComments
GetComments 仅加载一级评论
app/http/controllers/api/v1/comment_controller.go:72
Function
GetDuration
(key string)
pkg/cache/cache.go:97
Function
GetFloat64
(key string)
pkg/cache/cache.go:89
Method
GetFullCommentTree
GetFullCommentTree 获取整个评论树
app/http/controllers/api/v1/comment_controller.go:135
Function
GetInt32
(key string)
pkg/cache/cache.go:69
Function
GetInt64
(key string)
pkg/cache/cache.go:73
Function
GetIntSlice
(key string)
pkg/cache/cache.go:101
Method
GetMaterialCategoryTree
(ctx *gin.Context)
app/http/controllers/api/v1/category_controller.go:153
Function
GetString
(key string)
pkg/cache/cache.go:57
Function
GetStringMap
(key string)
pkg/cache/cache.go:109
Function
GetStringMapString
(key string)
pkg/cache/cache.go:113
Function
GetStringMapStringSlice
(key string)
pkg/cache/cache.go:117
Function
GetTime
(key string)
pkg/cache/cache.go:93
Function
GetUint
(key string)
pkg/cache/cache.go:77
Function
GetUint
GetUint 获取 Uint 类型的配置信息
pkg/config/config.go:121
Function
GetUint32
(key string)
pkg/cache/cache.go:81
Function
GetUint64
(key string)
pkg/cache/cache.go:85
Method
GetUserInfo
(ctx *gin.Context)
app/http/controllers/api/v1/users_controller.go:32
Method
Has
(key string)
pkg/cache/store_redis.go:30
Method
Has
Has 判断一个 key 是否存在,内部错误和 redis.Nil 都返回 false
pkg/redis/redis.go:81
Method
Hooks
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
Method
Hooks
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
Function
ImageUpload
(data interface{}, c *gin.Context)
app/requests/image_request.go:13
Function
Increment
(parameters ...interface{})
pkg/cache/cache.go:133
Method
Increment
(parameters ...interface{})
pkg/cache/store_redis.go:46
Method
Increment
Increment 当参数只有 1 个时,为 key,其值增加 1。 当参数有 2 个时,第一个参数为 key ,第二个参数为要增加的值 int64 类型。
pkg/redis/redis.go:112
Method
Index
(ctx *gin.Context)
app/http/controllers/api/v1/links_controller.go:19
Method
Indexes
()
app/models/schema/like_record.go:31
Method
Indexes
()
app/models/schema/category.go:50
Method
Indexes
Indexes of the Article.
app/models/schema/article.go:24
Function
Info
Info 告知类日志
pkg/logger/logger.go:153
Function
InfoJSON
(moduleName, name string, value interface{})
pkg/logger/logger.go:202
Function
InfoString
(moduleName, name, msg string)
pkg/logger/logger.go:179
Function
Initialize
Initialize 触发加载 config 包的所有 init 函数
config/config.go:4
Function
IsAlive
()
pkg/cache/cache.go:141
Method
IsAlive
()
pkg/cache/store_redis.go:54
Method
IsEmailExist
IsEmailExist 检测邮箱是否已注册
app/http/controllers/api/v1/auth/signup_controller.go:41
Method
IsPhoneExist
IsPhoneExist 检测手机号是否被注册
app/http/controllers/api/v1/auth/signup_controller.go:23
Method
LikeArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:239
Method
ListArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:77
Method
ListArticlesForUser
(ctx *gin.Context)
app/http/controllers/api/v1/users_controller.go:172
Method
ListCategory
(ctx *gin.Context)
app/http/controllers/api/v1/category_controller.go:110
Function
LogInfoIf
LogInfoIf 当 err != nil 时记录 info 等级的日志
pkg/logger/logger.go:138
Function
LoginByPassword
LoginByPassword 验证表单,返回长度等于零即通过
app/requests/login_request.go:38
Method
LoginByPassword
LoginByPassword 多种方法登录,支持手机号、email 和用户名
app/http/controllers/api/v1/auth/login_controller.go:45
Function
LoginByPhone
LoginByPhone 验证表单,返回长度等于零即通过
app/requests/login_request.go:11
Method
LoginByPhone
LoginByPhone 手机登录
app/http/controllers/api/v1/auth/login_controller.go:23
Function
Migrate
(cmd *cobra.Command, args []string)
app/cmd/migrate/migrate.go:14
Method
Mixin
()
app/models/schema/like_record.go:17
Method
Mixin
()
app/models/schema/comment.go:24
Method
Mixin
()
app/models/schema/category.go:18
Method
Mixin
()
app/models/schema/article.go:17
Method
Mixin
()
app/models/schema/link.go:13
Method
Mixin
()
app/models/schema/user.go:16
Method
RefreshToken
RefreshToken 更新 Token,用以提供 refresh token 接口
pkg/auth/jwt.go:96
Method
RefreshToken
RefreshToken 刷新 Access Token
app/http/controllers/api/v1/auth/login_controller.go:81
Function
RunWeb
(cmd *cobra.Command, args []string)
app/cmd/serve/serve.go:13
Method
Scan
Scan 实现sql Scanner接口
pkg/model/base_model.go:66
Method
Send
Send 实现 sms.Driver interface 的 Send 方法
pkg/sms/driver_aliyun.go:13
Method
Send
(phone string, message Message)
pkg/sms/sms.go:38
Method
Send
发送短信
pkg/sms/driver_interface.go:5
Method
Send
Send 实现 email.Driver interface 的 Send 方法
pkg/mail/driver_smtp.go:15
Method
Send
(email Email)
pkg/mail/mail.go:41
Method
SendUsingEmail
SendUsingEmail 发送 Email 验证码
app/http/controllers/api/v1/auth/verify_code_controller.go:41
Method
SendUsingPhone
SendUsingPhone 发送手机验证码
app/http/controllers/api/v1/auth/verify_code_controller.go:26
Method
Set
(key string, value string, expireTime time.Duration)
pkg/cache/store_redis.go:22
Method
Set
(key string, value string, expireTime time.Duration)
pkg/cache/store_interface.go:6
Method
Set
Set 实现 base64Captcha.Store interface 的 Set 方法
pkg/captcha/store_redis.go:18
Method
Set
Set 存储 key 对应的 value,且设置 expiration 过期时间
pkg/redis/redis.go:60
Method
Set
Set 实现 verifycode.Store interface 的 Set 方法
pkg/verifycode/store_redis.go:17
Method
ShowCaptcha
ShowCaptcha 显示图片验证码
app/http/controllers/api/v1/auth/verify_code_controller.go:19
Function
SignupEmailExist
(data interface{}, c *gin.Context)
app/requests/signup_request.go:27
Function
SignupPhoneExist
(data interface{}, c *gin.Context)
app/requests/signup_request.go:11
Function
SignupUsingEmail
(data interface{}, c *gin.Context)
app/requests/signup_request.go:121
Method
SignupUsingEmail
(c *gin.Context)
app/http/controllers/api/v1/auth/signup_controller.go:90
Function
SignupUsingPhone
(data interface{}, c *gin.Context)
app/requests/signup_request.go:80
Method
SignupUsingPhone
SignupUsingPhone 使用手机和验证码进行注册
app/http/controllers/api/v1/auth/signup_controller.go:59
Method
ToggleCollectArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:477
Method
UpdateArticle
(ctx *gin.Context)
app/http/controllers/api/v1/article_controller.go:174
Method
UpdatePassword
(ctx *gin.Context)
app/http/controllers/api/v1/users_controller.go:122
Method
UpdateUserAvatar
(ctx *gin.Context)
app/http/controllers/api/v1/users_controller.go:91
← previous
next →
201–300 of 337, ranked by callers