events

command
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Example events: executions started by time and by messages.

  • A cron schedule (a JetStream message schedule — no process keeps time) starts `report` every second; each firing becomes execution "<schedule>-<sequence>".

  • A trigger starts `order` for every message published on orders.created; the execution id is "order-<Nats-Msg-Id>", so a redelivered or republished message starts nothing twice.

    go run ./examples/events

Jump to

Keyboard shortcuts

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