Versions in this module Expand all Collapse all v0 v0.0.5 Dec 23, 2023 v0.0.2 Dec 23, 2023 Changes in this version + var ErrInvalidBroker = fmt.Errorf("%w: invalid broker", extensions.ErrAsyncAPI) + var ErrInvalidFileFormat = fmt.Errorf("%w: invalid file format", extensions.ErrAsyncAPI) + type CodeGen struct + ModulePath string + ModuleVersion string + Specification asyncapi.Specification + func FromFile(path string) (CodeGen, error) + func FromJSON(data []byte) (CodeGen, error) + func FromYAML(data []byte) (CodeGen, error) + func New(spec asyncapi.Specification) CodeGen + func (cg CodeGen) Generate(opt Options) error + type Options struct + DisableFormatting bool + Generate generators.Options + OutputPath string + PackageName string