Documentation
¶
Overview ¶
Package "issue114" 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 = "1.2.3"
AsyncAPIVersion is the version of the used AsyncAPI document
View Source
const (
// StatusPath is the constant representing the '/status' channel path.
StatusPath = "/status"
)
Variables ¶
View Source
var ChannelsPaths = []string{ StatusPath, }
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 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
Click to show internal directories.
Click to hide internal directories.