issue135

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 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 (
	// GroupChannelPath is the constant representing the 'GroupChannel' channel path.
	GroupChannelPath = "v3.issue135.group"
	// InfoChannelPath is the constant representing the 'InfoChannel' channel path.
	InfoChannelPath = "v3.issue135.info"
	// ProjectChannelPath is the constant representing the 'ProjectChannel' channel path.
	ProjectChannelPath = "v3.issue135.project"
	// ResourceChannelPath is the constant representing the 'ResourceChannel' channel path.
	ResourceChannelPath = "v3.issue135.resource"
	// StatusChannelPath is the constant representing the 'StatusChannel' channel path.
	StatusChannelPath = "v3.issue135.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 WithErrorHandler added in v0.35.0

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)
}

Jump to

Keyboard shortcuts

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