templates

package
v0.47.2 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelToMessageTypeName

func ChannelToMessageTypeName(ch asyncapi.Channel) (string, error)

ChannelToMessageTypeName will convert a channel to a message type name in the form of golang conventional type names.

func GenerateChannelAddr

func GenerateChannelAddr(ch *asyncapi.Channel) string

GenerateChannelAddr will generate a channel path with the given channel.

func GenerateChannelAddrFromOp

func GenerateChannelAddrFromOp(op asyncapi.Operation) string

GenerateChannelAddrFromOp will generate a channel path with the given operation.

func HelpersFunctions

func HelpersFunctions() template.FuncMap

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

func OpToChannelTypeName

func OpToChannelTypeName(op asyncapi.Operation) string

OpToChannelTypeName will convert an operation to a channel type name in the form of golang conventional type names.

func OpToMsgTypeName

func OpToMsgTypeName(op asyncapi.Operation) (string, error)

OpToMsgTypeName will convert an operation to a message 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