Documentation
¶
Overview ¶
Package "issue216" 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 = "0.1.0"
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 EventSuccessMessage ¶
type EventSuccessMessage struct { // Payload will be inserted in the message payload Payload EventSuccessMessagePayload }
EventSuccessMessage is the message expected for 'EventSuccessMessage' channel.
func NewEventSuccessMessage ¶
func NewEventSuccessMessage() EventSuccessMessage
type EventSuccessMessagePayload ¶
type EventSuccessMessagePayload struct {
EventObjects []EventSuccessMessagePayloadEventObjectsItem `json:"event_objects"`
}
EventSuccessMessagePayload is a schema from the AsyncAPI specification required in messages
type EventSuccessMessagePayloadEventObjectsItem ¶
type EventSuccessMessagePayloadEventObjectsItem struct { // Description: The identifier of the event EventId *string `json:"event_id"` // Description: The type of the event EventType *string `json:"event_type"` }
EventSuccessMessagePayloadEventObjectsItem is a schema from the AsyncAPI specification required in messages