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

# Functions

No description provided by the author
No description provided by the author
NewUserController links the User to the broker.
WithErrorHandler attaches a errorhandler to handle errors from subscriber functions.
WithLogger attaches a logger to the controller.
WithMiddlewares attaches middlewares that will be executed when sending or receiving messages.

# Constants

AsyncAPIVersion is the version of the used AsyncAPI document.
PingV2Path is the constant representing the 'PingV2' channel path.
PongV2Path is the constant representing the 'PongV2' channel path.

# Variables

ChannelsPaths is an array of all channels paths.

# Structs

No description provided by the author
PingMessage is the message expected for 'PingMessage' channel.
PingMessageHeaders is a schema from the AsyncAPI specification required in messages.
PongMessage is the message expected for 'PongMessage' channel.
PongMessageHeaders is a schema from the AsyncAPI specification required in messages.
PongMessagePayload is a schema from the AsyncAPI specification required in messages.
UserController is the structure that provides publishing capabilities to the developer and and connect the broker with the User.

# Interfaces

No description provided by the author
UserSubscriber represents all handlers that are expecting messages for User.

# Type aliases

ControllerOption is the type of the options that can be passed when creating a new Controller.