generator

package
v0.4.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

func NewFile

func NewFile(name string, path string, content []byte) File

func (File) Data

func (g File) Data() []byte

func (File) IsDir

func (g File) IsDir() bool

func (File) Lstat

func (g File) Lstat() (os.FileInfo, error)

func (File) ModTime

func (g File) ModTime() time.Time

func (File) Mode

func (g File) Mode() fs.FileMode

func (File) Name

func (g File) Name() string

func (File) Open

func (g File) Open() (io.ReadCloser, error)

func (File) Path

func (g File) Path() string

func (File) Size

func (g File) Size() int64

func (File) Sys

func (g File) Sys() any

type GuestLocalPackage

type GuestLocalPackage struct {
	GolangFiles       []File
	RustFiles         []File
	TypescriptFiles   []File
	TypescriptPackage *bytes.Buffer
}

func GenerateGuestLocal

func GenerateGuestLocal(options *Options) (*GuestLocalPackage, error)

type GuestRegistryPackage

type GuestRegistryPackage struct {
	GolangModule          *bytes.Buffer
	GolangModfile         []byte
	RustCrate             *bytes.Buffer
	RustCargofile         []byte
	TypescriptPackage     *bytes.Buffer
	TypescriptPackageJSON []byte
}

type HostLocalPackage

type HostLocalPackage struct {
	GolangFiles       []File
	TypescriptFiles   []File
	TypescriptPackage *bytes.Buffer
}

func GenerateHostLocal

func GenerateHostLocal(options *Options) (*HostLocalPackage, error)

type HostRegistryPackage

type HostRegistryPackage struct {
	GolangModule          *bytes.Buffer
	GolangModfile         []byte
	TypescriptPackage     *bytes.Buffer
	TypescriptPackageJSON []byte
}

type Options

type Options struct {
	Extension *extension.Schema

	GolangPackageImportPath string
	GolangPackageName       string

	RustPackageName    string
	RustPackageVersion string

	TypescriptPackageName    string
	TypescriptPackageVersion string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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