v8go_runtime

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

func NewRuntime

func NewRuntime() *Runtime

func (*Runtime) Compile

func (r *Runtime) Compile(script string) error

func (*Runtime) Execute

func (r *Runtime) Execute(sourceSchema *schemer.Schema, data map[string]interface{}) ([]map[string]interface{}, error)

func (*Runtime) LoadScript

func (r *Runtime) LoadScript(script string) error

func (*Runtime) SetEnv

func (r *Runtime) SetEnv(value map[string]interface{})

type Uint8Array

type Uint8Array struct {
	Buffer bytes.Buffer
}

type Uint8Array []byte

func (u Uint8Array) MarshalMsgpack() ([]byte, error) {
	return []byte(u), nil
}

func (u *Uint8Array) UnmarshalMsgpack(b []byte) error {
	*u = append((*u)[:0], b...)
	return nil
}

func (Uint8Array) MarshalMsgpack

func (u Uint8Array) MarshalMsgpack() ([]byte, error)

func (*Uint8Array) UnmarshalMsgpack

func (u *Uint8Array) UnmarshalMsgpack(b []byte) error

Jump to

Keyboard shortcuts

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