Documentation ¶
Index ¶
- type PgxContext
- type PgxRepository
- func (repo *PgxRepository[P, R]) DeleteExpired(status a.TrackedOperationStatus, count int) int64
- func (repo *PgxRepository[P, R]) FailExpiredStillRunning(count int) int64
- func (repo *PgxRepository[P, R]) FailTimedOutStillRunning(count int) int64
- func (repo *PgxRepository[P, R]) FetchOrStart(operation a.Operation[P, R, *PgxContext[P, R]]) *a.TrackedOperation[P, R]
- func (repo *PgxRepository[P, R]) NewSession(operation a.Operation[P, R, *PgxContext[P, R]]) *a.Session[P, R, *PgxContext[P, R]]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgxContext ¶
type PgxContext[P any, R any] struct { Tx pgx.Tx Context context.Context // contains filtered or unexported fields }
func NewPgxContext ¶
func (*PgxContext[P, R]) Fail ¶
func (ctx *PgxContext[P, R]) Fail(operation *a.TrackedOperation[P, R])
func (*PgxContext[P, R]) Success ¶
func (ctx *PgxContext[P, R]) Success(operation *a.TrackedOperation[P, R])
type PgxRepository ¶
func NewPgxRepository ¶
func NewPgxRepository[P any, R any](pool *pgxpool.Pool) *PgxRepository[P, R]
func (*PgxRepository[P, R]) DeleteExpired ¶
func (repo *PgxRepository[P, R]) DeleteExpired(status a.TrackedOperationStatus, count int) int64
func (*PgxRepository[P, R]) FailExpiredStillRunning ¶
func (repo *PgxRepository[P, R]) FailExpiredStillRunning(count int) int64
func (*PgxRepository[P, R]) FailTimedOutStillRunning ¶
func (repo *PgxRepository[P, R]) FailTimedOutStillRunning(count int) int64
func (*PgxRepository[P, R]) FetchOrStart ¶
func (repo *PgxRepository[P, R]) FetchOrStart(operation a.Operation[P, R, *PgxContext[P, R]]) *a.TrackedOperation[P, R]
func (*PgxRepository[P, R]) NewSession ¶
func (repo *PgxRepository[P, R]) NewSession(operation a.Operation[P, R, *PgxContext[P, R]]) *a.Session[P, R, *PgxContext[P, R]]
Click to show internal directories.
Click to hide internal directories.