templates

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: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelToMessage added in v0.35.1

func ChannelToMessage(ch asyncapi.Channel, direction string) (*asyncapi.Message, error)

ChannelToMessage will convert a channel to its message, based on publish/subscribe.

func GenerateChannelPath

func GenerateChannelPath(ch asyncapi.Channel) string

GenerateChannelPath will generate a channel path with the given channel.

func HelpersFunctions

func HelpersFunctions() template.FuncMap

HelpersFunctions returns the functions that can be used as helpers in a golang template.

func OperationName

func OperationName(channel asyncapi.Channel) string

OperationName returns `operationId` value from Publish or Subscribe operation if any. If no `operationID` exists — return provided default value (`name`).

func ReferenceToTypeName

func ReferenceToTypeName(ref string) (string, error)

ReferenceToTypeName will convert a reference to a type name in the form of golang conventional type names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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