rontines

package
v0.0.1-Beta01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitJobs

func InitJobs(logger *logrus.Logger, db *gorm.DB)

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:新的头像清理任务。

func (*AvatarCleanerJob) Run

func (job *AvatarCleanerJob) Run()

Run 执行头像清理任务。

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:新的头像清理任务。

func (*CachedImageCleanerJob) Run

func (job *CachedImageCleanerJob) Run()

Run 执行头像清理任务。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL