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

postgres

package
v0.0.0-...-6326fb3 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 implements the storage-owned transactional ledger.

Index

Constants

This section is empty.

Variables

View Source
var Schema string

Functions

This section is empty.

Types

type CustodyRepository

type CustodyRepository struct{ Repository *Repository }

CustodyRepository shares only storage-owned tables and its append-only audit. A short registry lock bounds enrollment and serializes account claims. Network work is deliberately outside these transactions.

func (*CustodyRepository) Transaction

func (r *CustodyRepository) Transaction(ctx context.Context, f func(custody.Tx) error) error

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

CheckRuntime rejects migration/admin identities and missing schema grants. It does not create schemas, change permissions, or inspect another module.

func (*Repository) Claim

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

func (*Repository) PendingEvents

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

func (*Repository) Transaction

func (r *Repository) Transaction(ctx context.Context, f func(storage.Transaction) error) error

Jump to

Keyboard shortcuts

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