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"}
}'
Click to show internal directories.
Click to hide internal directories.