event-driven

command
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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