Documentation
¶
Overview ¶
Package event-driven demonstrates generating a full AsyncAPI 3.0 document from channel descriptors and Codec-derived schemas using the render/asyncapi/v3 package.
AsyncAPI 3.0 operations are app-centric:
- Subscribe (action: receive): this app RECEIVES messages (consumer)
- Publish (action: send): this app SENDS messages (producer)
In AsyncAPI 3.0 channels and operations are separate top-level maps:
- channels: describe topics and their message schemas
- operations: link operations to channels via $ref (action: receive/send)
Security schemes are declared once in components/securitySchemes and referenced per-operation via Security []route.SecurityRequirement.
Run with: go run ./examples/event-driven
Click to show internal directories.
Click to hide internal directories.