job

package
v0.0.0-...-7efebb4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronJobBuilder

type CronJobBuilder struct {
	// contains filtered or unexported fields
}

func NewCronJobBuilder

func NewCronJobBuilder(l logger.Logger, opts prometheus.SummaryOpts) *CronJobBuilder

func (*CronJobBuilder) Build

func (c *CronJobBuilder) Build(job Job) cron.Job

type Job

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

type RankingJob

type RankingJob struct {
	// contains filtered or unexported fields
}

func NewRankingJob

func NewRankingJob(rankingSvc service.RankingService) *RankingJob

func (*RankingJob) Name

func (r *RankingJob) Name() string

func (*RankingJob) Run

func (r *RankingJob) Run() error

Jump to

Keyboard shortcuts

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