codegen

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidBroker = errors.New("invalid broker")
)
View Source
var (
	ErrInvalidFile = errors.New("invalid file")
)

Functions

This section is empty.

Types

type CodeGen

type CodeGen struct {
	Specification asyncapi.Specification
	ModulePath    string
	ModuleVersion string
}

func FromFile

func FromFile(path string) (CodeGen, error)

func FromJSON

func FromJSON(data []byte) (CodeGen, error)

func FromYAML

func FromYAML(data []byte) (CodeGen, error)

func New

func New(spec asyncapi.Specification) CodeGen

func (CodeGen) Generate

func (cg CodeGen) Generate(opt Options) error

type Options

type Options struct {
	OutputPath  string
	PackageName string
	Generate    generators.Options
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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