history

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHistoryService

func InitHistoryService(db *gorm.DB, logger *zap.Logger) (ext.JobHistoryService, error)

Types

type CronjobHistory added in v0.0.2

type CronjobHistory struct {
	gorm.Model
	ext.JobHistory
}

type OrmJobHistoryService

type OrmJobHistoryService struct {
	DB     *gorm.DB
	Logger *zap.Logger
}

func (*OrmJobHistoryService) GetLastRuntime

func (hs *OrmJobHistoryService) GetLastRuntime(job string) (time.Time, error)

func (*OrmJobHistoryService) ToHistory

func (hs *OrmJobHistoryService) ToHistory(job ext.JobHistory) error

Jump to

Keyboard shortcuts

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