issue300

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package "issue300" provides primitives to interact with the AsyncAPI specification.

Code generated by github.com/akmalsyrf/asyncapi-codegen version (devel) DO NOT EDIT.

Index

Constants

View Source
const AsyncAPIVersion = "1.0.0"

AsyncAPIVersion is the version of the used AsyncAPI document

View Source
const (
	// TestChannelPath is the constant representing the 'TestChannel' channel path.
	TestChannelPath = "test.channel"
)

Variables

View Source
var ChannelsPaths = []string{
	TestChannelPath,
}

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 Error

type Error struct {
	Channel string
	Err     error
}

func (*Error) Error

func (e *Error) Error() string

type MessageWithCorrelationID

type MessageWithCorrelationID interface {
	CorrelationID() string
	SetCorrelationID(id string)
}

type OpenObjectSchema

type OpenObjectSchema map[string]any

OpenObjectSchema is a schema from the AsyncAPI specification required in messages

type TestChannelMessage

type TestChannelMessage struct {
	// Payload will be inserted in the message payload
	Payload TestPayloadSchema
}

TestChannelMessage is the message expected for 'TestChannelMessage' channel.

func NewTestChannelMessage

func NewTestChannelMessage() TestChannelMessage

type TestPayloadSchema

type TestPayloadSchema struct {
	Open  OpenObjectSchema       `json:"open"`
	Union TestPayloadSchemaUnion `json:"union"`
}

TestPayloadSchema is a schema from the AsyncAPI specification required in messages

type TestPayloadSchemaUnion

type TestPayloadSchemaUnion struct {

	// AnyOf0
	AnyOf0 *string
	// AnyOf1
	AnyOf1 *int64
}

TestPayloadSchemaUnion is a schema from the AsyncAPI specification required in messages

type UnionSchema

type UnionSchema struct {

	// AnyOf0
	AnyOf0 *string
	// AnyOf1
	AnyOf1 *int64
}

UnionSchema is a schema from the AsyncAPI specification required in messages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL