job

package
v0.0.0-...-31439ab Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	JobI
	Time time.Duration
}

type JobI

type JobI interface {
	Run() error
	Name() string
}

type Jobs

type Jobs []Job

func (Jobs) RunLoop

func (jobs Jobs) RunLoop(ctx context.Context)

func (Jobs) RunWithName

func (jobs Jobs) RunWithName(name string) error

type RecordUpdateJob

type RecordUpdateJob struct {
	DB *gorm.DB
}

func (*RecordUpdateJob) Name

func (c *RecordUpdateJob) Name() string

func (*RecordUpdateJob) Run

func (c *RecordUpdateJob) Run() error

Jump to

Keyboard shortcuts

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