Help us shape the future of Go! Take the 2026 Go Developer Survey

app

command
v0.10.1 Latest Latest
Warning

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

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

Documentation

Overview

Command app is the shop example's workload: one binary, two roles chosen by ROLE.

api     POST /orders?item=x stores an order in Postgres and queues it on RabbitMQ;
        GET /orders lists the latest, cached in Redis for 5s
worker  takes orders off the queue, "ships" them (marks them done in Postgres); one in
        twenty fails and goes to orders.failed

RabbitMQ is reached through its management API to keep the example on the standard library plus pgx and go-redis; a real service would speak AMQP.

Jump to

Keyboard shortcuts

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