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

postgres

package
v0.0.0-...-df36dec Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema string

Functions

func Migrate

func Migrate(ctx context.Context, db *sql.DB) error

Types

type Repository

type Repository struct{ DB *sql.DB }

func (*Repository) CheckRuntime

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

func (*Repository) LocateCode

func (r *Repository) LocateCode(ctx context.Context, h string) (op.ConsentRecord, error)

func (*Repository) LocateConsent

func (r *Repository) LocateConsent(ctx context.Context, id string) (op.ConsentRecord, error)

func (*Repository) LocateGrant

func (r *Repository) LocateGrant(ctx context.Context, id string) (op.GrantRecord, error)

func (*Repository) LocateToken

func (r *Repository) LocateToken(ctx context.Context, h string) (op.TokenRecord, op.GrantRecord, error)

func (*Repository) Ready

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

func (*Repository) Transaction

func (r *Repository) Transaction(ctx context.Context, owner, app string, run func(op.Transaction) error) error

func (*Repository) WorkCandidates

func (r *Repository) WorkCandidates(ctx context.Context, now time.Time, limit int) ([]op.GrantRecord, error)

Jump to

Keyboard shortcuts

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