generator

package
v0.6.1-alpha.16 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 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

View Source
var ErrNoError = errors.New("abort without error")

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, build bool, 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) 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
	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) 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 {
	GenBase
}

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