Documentation
¶
Index ¶
- Variables
- func CreateSchedule(jobname, schedule string, cmd func()) error
- func DoCleanup(settingkey string, tables []string, col string, duration string) interface{}
- func InitDBCronJob(logger *zap.Logger, db *gorm.DB) (core.Startup, error)
- func InitScheduleCleanupJob(settingkey string) interface{}
- type CleanupService
- type CronZaplog
- type DBCleanupReq
- type DBCronJob
- type JobParams
- type ScheduleLoker
Constants ¶
This section is empty.
Variables ¶
View Source
var LockerTimeout = 50 * time.Millisecond
View Source
var ScheduleLockerEnabled = true
Functions ¶
func CreateSchedule ¶
func InitDBCronJob ¶ added in v0.8.0
func InitScheduleCleanupJob ¶ added in v0.8.0
func InitScheduleCleanupJob(settingkey string) interface{}
Types ¶
type CleanupService ¶ added in v0.8.0
func (*CleanupService) Cleanup ¶ added in v0.8.0
func (cs *CleanupService) Cleanup(req *DBCleanupReq) error
func (*CleanupService) GetDefaultRequest ¶ added in v0.8.0
func (cs *CleanupService) GetDefaultRequest() *DBCleanupReq
func (*CleanupService) RegConnection ¶ added in v0.8.0
func (cs *CleanupService) RegConnection(name string, db *gorm.DB)
type CronZaplog ¶
type CronZaplog struct {
// contains filtered or unexported fields
}
func (*CronZaplog) Error ¶
func (c *CronZaplog) Error(err error, msg string, keysAndValues ...interface{})
func (*CronZaplog) Info ¶
func (c *CronZaplog) Info(msg string, keysAndValues ...interface{})
type DBCleanupReq ¶ added in v0.8.0
type DBCronJob ¶ added in v0.8.0
type ScheduleLoker ¶ added in v0.7.7
func (*ScheduleLoker) Wrapper ¶ added in v0.7.7
func (sl *ScheduleLoker) Wrapper() cron.JobWrapper
Click to show internal directories.
Click to hide internal directories.