event_handler

command
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package main demonstrates event-driven workflow patterns.

This example shows: - WithEventHandler for automatic workflow start on CloudEvents - Event-driven microservice patterns - Multi-step event processing

Usage:

go run ./examples/event_handler/

Then send events:

curl -X POST http://localhost:8082/ \
  -H "Content-Type: application/json" \
  -d '{
    "specversion": "1.0",
    "type": "user.signup",
    "source": "auth-service",
    "id": "evt-123",
    "data": {"user_id": "user-001", "email": "alice@example.com", "name": "Alice"}
  }'

Jump to

Keyboard shortcuts

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