jobs

package
v0.0.0-...-785145d Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanTagValues

type CleanTagValues struct {
	Model *model.Manager
}

CleanTagValues is a job that cleans tags of punctuation etc.

func (CleanTagValues) Execute

func (ot CleanTagValues) Execute(ctx context.Context) error

Execute runs the job in a transaction

func (CleanTagValues) Name

func (ot CleanTagValues) Name() string

Name returns the job name

func (CleanTagValues) Schedule

func (ot CleanTagValues) Schedule() cron.Schedule

Schedule returns the job schedule.

type DeleteOrphanedTags

type DeleteOrphanedTags struct {
	Model *model.Manager
}

DeleteOrphanedTags is a job that deletes orphaned tags

func (DeleteOrphanedTags) Execute

func (ot DeleteOrphanedTags) Execute(ctx context.Context) error

Execute runs the job

func (DeleteOrphanedTags) Name

func (ot DeleteOrphanedTags) Name() string

Name returns the job name

func (DeleteOrphanedTags) Schedule

func (ot DeleteOrphanedTags) Schedule() cron.Schedule

Schedule returns the job schedule.

type FixContentRating

type FixContentRating struct {
	Model *model.Manager
}

FixContentRating fixes images that have been uploaded with a 0 content rating.

func (FixContentRating) Execute

func (fis FixContentRating) Execute(ctx context.Context) error

Execute runs the job

func (FixContentRating) Name

func (fis FixContentRating) Name() string

Name returns the job name.

func (FixContentRating) Schedule

func (fis FixContentRating) Schedule() cron.Schedule

Schedule returns the schedule.

Jump to

Keyboard shortcuts

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