generator

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyArray     = "array"
	KeyBaseType  = "basetype"
	KeyCore      = "core"
	KeyEvent     = "event"
	KeyEvents    = "events"
	KeyExist     = "exist"
	KeyFunc      = "func"
	KeyFuncs     = "funcs"
	KeyInit      = "init"
	KeyMandatory = "mandatory"
	KeyMap       = "map"
	KeyMut       = "mut"
	KeyParam     = "param"
	KeyParams    = "params"
	KeyProxy     = "proxy"
	KeyPtrs      = "ptrs"
	KeyResult    = "result"
	KeyResults   = "results"
	KeyState     = "state"
	KeyStruct    = "struct"
	KeyStructs   = "structs"
	KeyThis      = "this"
	KeyTrue      = "true"
	KeyTypeDef   = "typedef"
	KeyTypeDefs  = "typedefs"
	KeyView      = "view"
)

Variables

This section is empty.

Functions

func FindModulePath

func FindModulePath() error

Types

type Generator added in v0.2.2

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

func (*Generator) GenerateTests added in v1.0.3

func (g *Generator) GenerateTests() error

func (*Generator) IsLatest added in v1.0.3

func (g *Generator) IsLatest() bool

type GoGenerator added in v0.2.2

type GoGenerator struct {
	Generator
}

func NewGoGenerator added in v0.2.2

func NewGoGenerator(s *model.Schema) *GoGenerator

func (*GoGenerator) Build added in v1.0.3

func (g *GoGenerator) Build() error

func (*GoGenerator) Cleanup added in v1.0.3

func (g *GoGenerator) Cleanup()

func (*GoGenerator) GenerateImplementation added in v1.0.3

func (g *GoGenerator) GenerateImplementation() error

func (*GoGenerator) GenerateInterface added in v1.0.3

func (g *GoGenerator) GenerateInterface() error

func (*GoGenerator) GenerateWasmStub added in v1.0.3

func (g *GoGenerator) GenerateWasmStub() error

type IGenerator added in v1.0.3

type IGenerator interface {
	Build() error
	Cleanup()
	GenerateImplementation() error
	GenerateInterface() error
	GenerateTests() error
	GenerateWasmStub() error
	IsLatest() bool
}

type RustGenerator added in v0.2.2

type RustGenerator struct {
	Generator
}

func NewRustGenerator added in v0.2.2

func NewRustGenerator(s *model.Schema) *RustGenerator

func (*RustGenerator) Build added in v1.0.3

func (g *RustGenerator) Build() error

func (*RustGenerator) Cleanup added in v1.0.3

func (g *RustGenerator) Cleanup()

func (*RustGenerator) GenerateImplementation added in v1.0.3

func (g *RustGenerator) GenerateImplementation() error

func (*RustGenerator) GenerateInterface added in v1.0.3

func (g *RustGenerator) GenerateInterface() error

func (*RustGenerator) GenerateWasmStub added in v1.0.3

func (g *RustGenerator) GenerateWasmStub() error

type TypeScriptGenerator added in v0.2.2

type TypeScriptGenerator struct {
	Generator
}

func NewTypeScriptGenerator added in v0.2.2

func NewTypeScriptGenerator(s *model.Schema, rootFolder string) *TypeScriptGenerator

func (*TypeScriptGenerator) Build added in v1.0.3

func (g *TypeScriptGenerator) Build() error

func (*TypeScriptGenerator) Cleanup added in v1.0.3

func (g *TypeScriptGenerator) Cleanup()

func (*TypeScriptGenerator) GenerateImplementation added in v1.0.3

func (g *TypeScriptGenerator) GenerateImplementation() error

func (*TypeScriptGenerator) GenerateInterface added in v1.0.3

func (g *TypeScriptGenerator) GenerateInterface() error

func (*TypeScriptGenerator) GenerateWasmStub added in v1.0.3

func (g *TypeScriptGenerator) GenerateWasmStub() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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