issue135

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package "issue135" 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 (
	// GroupPath is the constant representing the 'Group' channel path.
	GroupPath = "group"
	// InfoPath is the constant representing the 'Info' channel path.
	InfoPath = "info"
	// ProjectPath is the constant representing the 'Project' channel path.
	ProjectPath = "project"
	// ResourcePath is the constant representing the 'Resource' channel path.
	ResourcePath = "resource"
	// StatusPath is the constant representing the 'Status' channel path.
	StatusPath = "status"
)
View Source
const AsyncAPIVersion = "1.2.3"

AsyncAPIVersion is the version of the used AsyncAPI document

Variables

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 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 GroupMessage

type GroupMessage struct {
	// Payload will be inserted in the message payload
	Payload string
}

GroupMessage is the message expected for 'Group' channel

func NewGroupMessage

func NewGroupMessage() GroupMessage

type InfoMessage

type InfoMessage struct {
	// Payload will be inserted in the message payload
	Payload string
}

InfoMessage is the message expected for 'Info' channel

func NewInfoMessage

func NewInfoMessage() InfoMessage

type MessageWithCorrelationID

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

type ProjectMessage

type ProjectMessage struct {
	// Payload will be inserted in the message payload
	Payload string
}

ProjectMessage is the message expected for 'Project' channel

func NewProjectMessage

func NewProjectMessage() ProjectMessage

type ResourceMessage

type ResourceMessage struct {
	// Payload will be inserted in the message payload
	Payload string
}

ResourceMessage is the message expected for 'Resource' channel

func NewResourceMessage

func NewResourceMessage() ResourceMessage

type StatusMessage

type StatusMessage struct {
	// Payload will be inserted in the message payload
	Payload string
}

StatusMessage is the message expected for 'Status' channel

func NewStatusMessage

func NewStatusMessage() StatusMessage

Jump to

Keyboard shortcuts

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