js

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireAI added in v0.0.3

func RequireAI() map[string]any

func RequireConsole added in v0.0.3

func RequireConsole() map[string]any

func RequireDB added in v0.0.5

func RequireDB() map[string]any

func RequireFile added in v0.0.3

func RequireFile() map[string]any

func RequireHTTP added in v0.0.3

func RequireHTTP() map[string]any

func RequireLLM added in v0.0.5

func RequireLLM(lm llm.LLM) map[string]any

func RequireLog added in v0.0.5

func RequireLog() map[string]any

func RequireUtil added in v0.0.3

func RequireUtil() map[string]any

Types

type Args added in v0.0.3

type Args struct {
	This      goja.Value
	Arguments []goja.Value
	VM        *goja.Runtime
}

func MakeArgs added in v0.0.3

func MakeArgs(args *goja.FunctionCall, vm *goja.Runtime) *Args

func (*Args) Any added in v0.0.3

func (args *Args) Any(index int) any

func (*Args) Arr added in v0.0.5

func (args *Args) Arr(startIndex int) []any

func (*Args) Bool added in v0.0.5

func (args *Args) Bool(index int) bool

func (*Args) Bytes added in v0.0.5

func (args *Args) Bytes(index int) []byte

func (*Args) Check added in v0.0.3

func (args *Args) Check(num int) *Args

func (*Args) Int added in v0.0.3

func (args *Args) Int(index int) int

func (*Args) Int64 added in v0.0.5

func (args *Args) Int64(index int) int64

func (*Args) Map added in v0.0.3

func (args *Args) Map(index int) map[string]any

func (*Args) Map2Arr added in v0.0.5

func (args *Args) Map2Arr(index int) []any

func (*Args) Map2StrArr added in v0.0.3

func (args *Args) Map2StrArr(index int) []string

func (*Args) Path added in v0.0.5

func (args *Args) Path(index int) string

func (*Args) Str added in v0.0.3

func (args *Args) Str(index int) string

func (*Args) StrArr added in v0.0.3

func (args *Args) StrArr(startIndex int) []string

type Http added in v0.0.3

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

func (*Http) Delete added in v0.0.3

func (hc *Http) Delete(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value

func (*Http) Do added in v0.0.3

func (hc *Http) Do(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value

func (*Http) Download added in v0.0.3

func (hc *Http) Download(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value

func (*Http) Get added in v0.0.3

func (hc *Http) Get(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value

func (*Http) Head added in v0.0.3

func (hc *Http) Head(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value

func (*Http) Post added in v0.0.3

func (hc *Http) Post(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value

func (*Http) Put added in v0.0.3

func (hc *Http) Put(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value

func (*Http) Upload added in v0.0.3

func (hc *Http) Upload(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value

Jump to

Keyboard shortcuts

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