v8

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModule

func NewModule(ctx context.Context, wasmCode []byte, wasmCodeType string, registry *wasm.Registry) (wasm.Module, error)

Types

type V8Instance

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

func NewV8Instance

func NewV8Instance(iso *v8go.Isolate) (*V8Instance, error)

func (*V8Instance) Cleanup

func (inst *V8Instance) Cleanup(ctx context.Context) error

Unused right now and simply comes from the wasm interface but might be useful when cleaning between requests

func (*V8Instance) Close

func (inst *V8Instance) Close(_ context.Context) (_ error)

type V8Module

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

func (*V8Module) Close

func (mod *V8Module) Close(context.Context) error

func (*V8Module) ExecuteNewCall

func (mod *V8Module) ExecuteNewCall(
	ctx context.Context,
	call *wasm.Call,
	cachedInstance wasm.Instance,
	_ []wasm.Argument,
	argValues map[string][]byte,
) (wasm.Instance, error)

func (*V8Module) NewInstance

func (mod *V8Module) NewInstance(context.Context) (wasm.Instance, error)

type V8ModuleFactory

type V8ModuleFactory struct{}

Jump to

Keyboard shortcuts

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