generator

package
v0.5.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 12 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 GenBase added in v0.2.2

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

func (*GenBase) Generate added in v0.2.2

func (g *GenBase) Generate(gen IGenerator, clean bool) error

func (*GenBase) IsLatest

func (g *GenBase) IsLatest() bool

type GoGenerator added in v0.2.2

type GoGenerator struct {
	GenBase
}

func NewGoGenerator added in v0.2.2

func NewGoGenerator(s *model.Schema) *GoGenerator

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 {
	Cleanup()
	GenerateImplementation() error
	GenerateInterface() error
	GenerateWasmStub() error
	IsLatest() bool
}

type RustGenerator added in v0.2.2

type RustGenerator struct {
	GenBase
}

func NewRustGenerator added in v0.2.2

func NewRustGenerator(s *model.Schema) *RustGenerator

func (*RustGenerator) Cleanup added in v1.0.3

func (g *RustGenerator) Cleanup()

func (*RustGenerator) GenerateCargoToml

func (g *RustGenerator) GenerateCargoToml(cargoMain string, overwrite bool) error

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 {
	GenBase
}

func NewTypeScriptGenerator added in v0.2.2

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

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