job

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLog

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

func (*DefaultLog) Error

func (l *DefaultLog) Error(err error, msg string, keysAndValues ...interface{})

func (*DefaultLog) Info

func (l *DefaultLog) Info(msg string, keysAndValues ...interface{})

type Job

type Job struct {
	Callback func() (err error)
	JobID    cron.EntryID
	Done     chan bool
	Logger   *zap.Logger
}

func (Job) Run

func (j Job) Run()

func (Job) Start

func (j Job) Start(spec string, job Job)

Start 开始定时计划任务 -spec 传入cron时间设置 -job 执行的任务

Jump to

Keyboard shortcuts

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