postgres

package
v0.0.0-...-b0e61e5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package postgres owns media metadata and migrations, using a separate role.

Index

Constants

This section is empty.

Variables

View Source
var Schema string

Functions

This section is empty.

Types

type Repository

type Repository struct{ DB *sql.DB }

func (*Repository) AcknowledgeEvent

func (r *Repository) AcknowledgeEvent(ctx context.Context, id string) error

func (*Repository) CheckRuntime

func (r *Repository) CheckRuntime(ctx context.Context) error

func (*Repository) Claim

func (r *Repository) Claim(ctx context.Context, worker string, now time.Time, lease time.Duration) (media.Job, error)

func (*Repository) PendingEvents

func (r *Repository) PendingEvents(ctx context.Context, n int) ([]media.Event, error)

func (*Repository) Transaction

func (r *Repository) Transaction(ctx context.Context, run func(media.Transaction) error) error

Jump to

Keyboard shortcuts

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