asyncapi

package
v0.39.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedVersions = []string{
	"2.0.0",
	"2.1.0",
	"2.2.0",
	"2.3.0",
	"2.4.0",
	"2.5.0",
	"2.6.0",

	"3.0.0",
}

SupportedVersions describe the asyncapi-codegen supported versions.

Functions

func IsMajorVersionSupported added in v0.39.0

func IsMajorVersionSupported(version int) bool

IsMajorVersionSupported checks that the major version is supported.

func IsVersionSupported added in v0.32.0

func IsVersionSupported(version string) bool

IsVersionSupported checks that the version is supported.

Types

type Specification

type Specification interface {
	// MajorVersion returns the major version of the AsyncAPI specification.
	MajorVersion() int
	// Process processes all information in specification in order to link the
	// references, apply the traits and generating other information for code
	// generation.
	//
	// WARNING: this will alter the specification as you will find, by example,
	// traits applied in the specification.
	Process() error
	// AddDependency adds a dependency to the specification.
	AddDependency(path string, spec Specification) error
}

Specification only contains common functions between each version. This should be casted to get all other functions, base on the version.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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