scheduler_pg

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func NewRepo

func NewRepo(pool *pgxpool.Pool) *Repo

func (*Repo) Create

func (r *Repo) Create(ctx context.Context, policyID uuid.UUID, next time.Time) error

func (*Repo) Delete

func (r *Repo) Delete(ctx context.Context, policyID uuid.UUID) error

func (*Repo) GetByPolicy

func (r *Repo) GetByPolicy(ctx context.Context, policyID uuid.UUID) (scheduler.Scheduler, error)

func (*Repo) GetPending

func (r *Repo) GetPending(ctx context.Context) ([]scheduler.Scheduler, error)

func (*Repo) SetNext

func (r *Repo) SetNext(ctx context.Context, policyID uuid.UUID, next time.Time) error

func (*Repo) Tx

func (r *Repo) Tx() storage.Tx

Jump to

Keyboard shortcuts

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