package
0.45.0
Repository: https://github.com/lerenn/asyncapi-codegen.git
Documentation: pkg.go.dev

# Functions

NewWrapper creates a Version Wrapper around a Broker Controller.
WithDefaultVersion lets add a default version to tag messages that don't have versions tagged.
WithLogger lets add a logger to the Wrapper struct.
WithVersionHeaderKey lets use a different version header key to add application version to published messages and retrieve it from received messages.

# Constants

DefaultVersionHeaderKey is the field that will be added to a message to get the version.

# Variables

ErrNoVersion happens when there is no version in the context or the message.

# Structs

Wrapper allows to use multiple version of the same App/User Controllers on one Broker Controller in order to handle migrations.

# Type aliases

WrapperOption adds an option to Version Wrapper.