Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvatarCleanerJob ¶
type AvatarCleanerJob struct {
// contains filtered or unexported fields
}
AvatarCleanerJob 头像清理任务
func NewAvatarCleanerJob ¶
func NewAvatarCleanerJob(logger *logrus.Logger, db *gorm.DB) *AvatarCleanerJob
NewAvatarCleanerJob 创建一个新的头像清理任务。
参数:
- db:数据库连接
- logger:日志记录器
返回值:
- *AvatarCleanerJob:新的头像清理任务。
type CachedImageCleanerJob ¶
type CachedImageCleanerJob struct {
// contains filtered or unexported fields
}
CachedImageCleanerJob 头像清理任务
func NewCachedImageCleanerJob ¶
func NewCachedImageCleanerJob(logger *logrus.Logger, db *gorm.DB) *CachedImageCleanerJob
NewAvatarCleanerJob 创建一个新的头像清理任务。
参数:
- db:数据库连接
- logger:日志记录器
返回值:
- *AvatarCleanerJob:新的头像清理任务。
Click to show internal directories.
Click to hide internal directories.