Documentation ¶
Overview ¶
Package "issue173" provides primitives to interact with the AsyncAPI specification.
Code generated by github.com/lerenn/asyncapi-codegen version (devel) DO NOT EDIT.
Index ¶
Constants ¶
const AsyncAPIVersion = ""
AsyncAPIVersion is the version of the used AsyncAPI document
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerOption ¶
type ControllerOption func(controller *controller)
ControllerOption is the type of the options that can be passed when creating a new Controller
func WithErrorHandler ¶
func WithErrorHandler(handler extensions.ErrorHandler) ControllerOption
WithErrorHandler attaches a errorhandler to handle errors from subscriber functions
func WithLogger ¶
func WithLogger(logger extensions.Logger) ControllerOption
WithLogger attaches a logger to the controller
func WithMiddlewares ¶
func WithMiddlewares(middlewares ...extensions.Middleware) ControllerOption
WithMiddlewares attaches middlewares that will be executed when sending or receiving messages
type HeadersFromType1Message ¶ added in v0.38.0
type HeadersFromType1Message struct { // Description: Correlation ID set by client CorrelationId *string `json:"correlationId,omitempty"` }
HeadersFromType1Message is a schema from the AsyncAPI specification required in messages
type HeadersFromType2Message ¶ added in v0.38.0
type HeadersFromType2Message struct { // Description: Correlation ID set by client CorrelationId *string `json:"correlationId,omitempty"` }
HeadersFromType2Message is a schema from the AsyncAPI specification required in messages
type Type1Message ¶
type Type1Message struct { // Headers will be used to fill the message headers Headers HeadersFromType1Message // Payload will be inserted in the message payload Payload Type1MessagePayload }
Type1Message is the message expected for 'Type1Message' channel.
func NewType1Message ¶
func NewType1Message() Type1Message
type Type1MessagePayload ¶
type Type1MessagePayload struct{}
Type1MessagePayload is a schema from the AsyncAPI specification required in messages
type Type2Message ¶
type Type2Message struct { // Headers will be used to fill the message headers Headers HeadersFromType2Message // Payload will be inserted in the message payload Payload Type2MessagePayload }
Type2Message is the message expected for 'Type2Message' channel.
func NewType2Message ¶
func NewType2Message() Type2Message
type Type2MessagePayload ¶
type Type2MessagePayload struct{}
Type2MessagePayload is a schema from the AsyncAPI specification required in messages