postgres

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunsRepo

type RunsRepo struct {
	Pool ports.DatabasePool
}

RunsRepo stores scheduler job executions.

func NewRunsRepo

func NewRunsRepo(pool ports.DatabasePool) *RunsRepo

func (*RunsRepo) LastFinished

func (r *RunsRepo) LastFinished(ctx context.Context, jobName string) (time.Time, bool, error)

func (*RunsRepo) Record

func (r *RunsRepo) Record(ctx context.Context, jobName string, startedAt, finishedAt time.Time, success bool, errMsg string) error

Jump to

Keyboard shortcuts

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