postgres

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store[T comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[T comparable](db *sql.DB) *Store[T]

func (*Store[T]) FetchPending

func (s *Store[T]) FetchPending(ctx context.Context, limit int) ([]xoutbox.Event[T], error)

func (*Store[T]) InsertEvent

func (s *Store[T]) InsertEvent(ctx context.Context, event xoutbox.Event[T]) error

func (*Store[T]) MarkFailed

func (s *Store[T]) MarkFailed(ctx context.Context, id T, retryCount int) error

func (*Store[T]) MarkPublished

func (s *Store[T]) MarkPublished(ctx context.Context, id T) error

Jump to

Keyboard shortcuts

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