Categorygithub.com/progbits/qed
modulepackage
0.0.0-20230819151151-5c68b0b5d038
Repository: https://github.com/progbits/qed.git
Documentation: pkg.go.dev

# README

Qed

Go

Qed is a simple, Postgres backed task queue.

Getting Started

Setup

Qed leverages Postgres to persist state about running and pending tasks. The Qed schema migration can be found in database/migrations/postgres.

Migrations can be applied directly to a running Postgres instance as follows:

psql -U postgres -h localhost -f database/postgres/schema.sql

Running the Example

A simple usage example can be found here.

The example requires a running Postgres database with the Qed schema migration applied.

To start a new Postgres instance:

docker run -e 'POSTGRES_PASSWORD=password' -d -p 5432:5432 postgres:14.3

Once the Postgres instance is running, the Qed schema migration can be applied:

psql -U postgres -h localhost -f database/postgres/schema.sql

Once the database is set up, the example project can be built and run:

make example

# Packages

No description provided by the author

# Functions

NewTaskQueue returns a new TaskQueue instance configured to use the specified database connection for persistent task storage.

# Structs

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