Documentation
¶
Overview ¶
Package "issue275" provides primitives to interact with the AsyncAPI specification.
Code generated by github.com/akmalsyrf/asyncapi-codegen version (devel) DO NOT EDIT.
Index ¶
Constants ¶
const AsyncAPIVersion = "1.0.0"
AsyncAPIVersion is the version of the used AsyncAPI document
const (
// V2OmitemptyTestPath is the constant representing the 'V2OmitemptyTest' channel path.
V2OmitemptyTestPath = "v2.omitempty.test"
)
Variables ¶
var ChannelsPaths = []string{ V2OmitemptyTestPath, }
ChannelsPaths is an array of all channels paths
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 TestSchema ¶
type TestSchema struct {
// Description: This field should have omitempty in the JSON tag
RequiredWithOmitEmpty string `json:"requiredWithOmitEmpty,omitempty"`
// Description: This field should have omitempty in the JSON tag
WithOmitEmpty *string `json:"withOmitEmpty,omitempty"`
// Description: This field should NOT have omitempty in the JSON tag
WithoutOmitEmpty *string `json:"withoutOmitEmpty"`
}
TestSchema is a schema from the AsyncAPI specification required in messages
type V2OmitemptyTestMessage ¶
type V2OmitemptyTestMessage struct {
// Payload will be inserted in the message payload
Payload TestSchema
}
V2OmitemptyTestMessage is the message expected for 'V2OmitemptyTestMessage' channel.
func NewV2OmitemptyTestMessage ¶
func NewV2OmitemptyTestMessage() V2OmitemptyTestMessage