Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastRunProvider ¶
type LastRunProvider interface {
LastFinished(ctx context.Context, jobName string) (time.Time, bool, error)
}
LastRunProvider exposes last finished run for a job.
type Recorder ¶
type Recorder interface {
Record(ctx context.Context, jobName string, startedAt, finishedAt time.Time, success bool, errMsg string) error
}
Recorder persists job runs.
type RecorderFunc ¶
type RecorderFunc func(ctx context.Context, jobName string, startedAt, finishedAt time.Time, success bool, errMsg string) error
RecorderFunc turns a function into a Recorder.
Click to show internal directories.
Click to hide internal directories.