Help us shape the future of Go! Take the 2026 Go Developer Survey

postgres

package
v0.0.0-...-822b6ff Latest Latest
Warning

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

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

Documentation

Overview

Package postgres owns contribution metadata and its independent runtime identity.

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) (contribution.Job, error)

func (*Repository) PendingEvents

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

func (*Repository) Transaction

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

Jump to

Keyboard shortcuts

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