package
0.0.0-20241014132920-6ca6759f5c73
Repository: https://github.com/content-services/content-sources-backend.git
Documentation: pkg.go.dev

# Functions

NewMockQueue creates a new instance of MockQueue.
No description provided by the author
No description provided by the author

# Constants

Maximum number of times a task can be retried before failing.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

FakePgxPoolWrapper is used for testing, to provide a pool interface implementation that doesn't actually use the pool in order to wrap all work in a transaction.
MockQueue is an autogenerated mock type for the Queue type.
PgQueue a task queue backed by postgres, using pgxpool.Pool using a wrapper (PgxPoolWrapper) that implements a Pool interface.
PgxConnWrapper wraps a pgxpool Conn in a generic interface to allow for alternative implementations, such as the FakePgxPoolWrapper.
PgxPoolWrapper wraps a pgx Pool in a generic interface to allow for alternative implementations, such as the FakePgxPoolWrapper.
No description provided by the author

# Interfaces

No description provided by the author
Pool matches the pgxpool.Pool struct.
go:generate $GO_OUTPUT/mockery --name Queue --filename queue_mock.go --inpackage.
Transaction mimics the pgx.Tx struct.