Documentation
¶
Overview ¶
Package main demonstrates the generic type-safe handler wrapper and rich control flow errors (Skip, Repeat, Pause).
Scenario: An order processing pipeline where:
- TypedHandler[T] eliminates manual JSON unmarshal boilerplate
- TypedHandlerWithResult[T,R] returns typed output
- SkipError skips orders below a minimum threshold
- RepeatError re-enqueues for incremental batch processing
- PauseError pauses the job when an external dependency is down
Click to show internal directories.
Click to hide internal directories.