codegen

package
v0.0.4-vb Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeGen

type CodeGen struct {
	// contains filtered or unexported fields
}

CodeGen is the main structure for the code generation.

func FromFile

func FromFile(path string) (CodeGen, error)

FromFile returns a code generator from a specification file path.

func New

func New(spec asyncapi.Specification) (CodeGen, error)

New creates a new code generation structure that can be used to generate code.

func (CodeGen) Generate

func (cg CodeGen) Generate(opt options.Options) error

Generate generates code from the code generation structure, that have already processed the AsyncAPI file when creating it.

Directories

Path Synopsis
v2
v3

Jump to

Keyboard shortcuts

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