basic

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

Basic usage

Enqueue an email in the user row's transaction (InsertTx) and wait for it. The README example.

docker compose -f deploy/docker-compose.yml up -d --wait postgres  # Postgres on localhost:55432
go run ./examples/basic                                            # safe to rerun

Default FOREMAN_DATABASE_URL: postgres://foreman:foreman@localhost:55432/foreman?sslmode=disable.

Expected output

sending "welcome" email to user 1 (attempt 1)
job completed: id=1 state=completed

Documentation

Overview

Command basic enqueues a job in a transaction and waits for it to complete.

Jump to

Keyboard shortcuts

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