issue175

package
v0.59.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const AsyncAPIVersion = ""

AsyncAPIVersion is the version of the used AsyncAPI document

Variables

This section is empty.

Functions

func CheckGeneration

func CheckGeneration()

CheckGeneration is just to test that the generation is correct.

Types

type ArrayPayloadSchema

type ArrayPayloadSchema []ItemFromArrayPayloadSchema

ArrayPayloadSchema is a schema from the AsyncAPI specification required in messages

type Error

type Error struct {
	Channel string
	Err     error
}

Error is the error structure returned by the controller operations.

func (*Error) Error

func (e *Error) Error() string

Error returns a string representation of the error.

type ItemFromArrayPayloadSchema added in v0.39.4

type ItemFromArrayPayloadSchema struct {
	Age   *int64  `json:"age,omitempty"`
	Email *string `json:"email,omitempty"`
	Name  *string `json:"name,omitempty"`
}

ItemFromArrayPayloadSchema is a schema from the AsyncAPI specification required in messages

type ItemFromType1MessagePayload added in v0.39.4

type ItemFromType1MessagePayload struct {
	Age   *int64  `json:"age,omitempty"`
	Email *string `json:"email,omitempty"`
	Name  *string `json:"name,omitempty"`
}

ItemFromType1MessagePayload is a schema from the AsyncAPI specification required in messages

type MessageWithCorrelationID

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

MessageWithCorrelationID is implemented by messages that carry a correlation ID.

type Type1Message

type Type1Message struct {
	// Payload will be inserted in the message payload
	Payload []ItemFromType1MessagePayload
}

Type1Message is the message expected for 'Type1Message' channel.

func NewType1Message

func NewType1Message() Type1Message

NewType1Message creates a new Type1Message with default values if any.

type Type1MessagePayload

type Type1MessagePayload []ItemFromType1MessagePayload

Type1MessagePayload is a schema from the AsyncAPI specification required in messages

type Type2Message

type Type2Message struct {
	// Payload will be inserted in the message payload
	Payload ArrayPayloadSchema
}

Type2Message is the message expected for 'Type2Message' channel.

func NewType2Message

func NewType2Message() Type2Message

NewType2Message creates a new Type2Message with default values if any.

type Type3Message

type Type3Message struct {
	// Payload will be inserted in the message payload
	Payload []string
}

Type3Message is the message expected for 'Type3Message' channel.

func NewType3Message

func NewType3Message() Type3Message

NewType3Message creates a new Type3Message with default values if any.

type Type3MessagePayload

type Type3MessagePayload []string

Type3MessagePayload 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