Documentation
¶
Overview ¶
Package postgres owns all groups SQL. Use a dedicated groups database role.
Index ¶
- Variables
- type Repository
- func (r *Repository) ConfirmOutbox(ctx context.Context, id string) error
- func (r *Repository) Failed(ctx context.Context, id string, now time.Time) error
- func (r *Repository) Migrate(ctx context.Context) error
- func (r *Repository) PendingOutbox(ctx context.Context, limit int, excludeSubjects []string) ([]g.Event, error)
- func (r *Repository) ReadAccount(ctx context.Context, s aq.Selection) ([]aq.Record, error)
- func (r *Repository) ReadOnly(ctx context.Context, fn func(g.ReadTx) error) error
- func (r *Repository) Ready(ctx context.Context) error
- func (r *Repository) Relay(ctx context.Context, deliver func(context.Context, g.Event) error) error
- func (r *Repository) Retry(ctx context.Context, id string, now time.Time) error
- func (r *Repository) ScopedTransaction(ctx context.Context, scopes []string, fn func(g.Tx) error) error
- func (r *Repository) Transaction(ctx context.Context, fn func(g.Tx) error) error
Constants ¶
This section is empty.
Variables ¶
var Schema string
Functions ¶
This section is empty.
Types ¶
type Repository ¶
func (*Repository) ConfirmOutbox ¶
func (r *Repository) ConfirmOutbox(ctx context.Context, id string) error
func (*Repository) PendingOutbox ¶
func (r *Repository) PendingOutbox(ctx context.Context, limit int, excludeSubjects []string) ([]g.Event, error)
PendingOutbox is a non-claiming read. Retry/held subjects are owned by the consuming relay and must be passed explicitly; no provider clock is involved.
func (*Repository) ReadAccount ¶
ReadAccount filters authoritative module facts before the stable exclusive page.
func (*Repository) Relay ¶
Relay owns one LISTEN connection. The host restarts Relay after connection failure, with bounded backoff. Startup and reconnect immediately drain outbox. deliver must persist consumer inbox before returning nil.
func (*Repository) Retry ¶
Retry is a host-only administrative boundary; host must authorize and audit.