AsyncApi Schema
AsyncApi Schema contains support infrastructure for generating and consuming AsyncApi specifications directly from go code.
Microservice developers will typically interact with a small subset of AsyncApi models.
Documentation Generators
Documentation Generators convert an active object from the streamops package
to a documentation element from this package.
ChannelDocumentor- Generates
ChannelItemdocumentation from astreamops.Channel
- Generates
ChannelPublisherDocumentor- Generates
Operationdocumentation from astreamops.ChannelPublisher
- Generates
ChannelSubscriberDocumentor- Generates
Operationdocumentation from astreamops.ChannelSubscriber
- Generates
MessagePublisherDocumentor- Generates
Messagedocumentation from astreamops.MessagePublisher
- Generates
Documentation Generators have the following user-modifiable properties:
Skip: Set to true if you which to skip generating documentation for this node.ChannelItem/Operation/Message: Specify a documentation element instance to use as the basis for generating documentation for this node. This is typically where you provide explanatory fields such as title, description, etc.Mutator: Specify a function to enable customization of the generated documentation after the Documentor has processed this node.
Documentation Elements
Documentation Elements are generated by documentors and are inserted into the AsyncApi specification document being generated.
Channel- Documents sequence of sent and received messages from a single location.
Message- Documents a single unit of communication sent to or received from a channel.
Operation- Documents a single channel operation (publish or subscriber) for a single channel.
Schema- Documents the format of a message payload or headers.
- In go-msx, this schema must be in JSON Schema format.