module

package
v0.0.0-...-4d5b1ca Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallModule

func InstallModule(as MASer, vm *goja.Runtime)

add the module() function to js

func Register

func Register(mod string, f Installer) bool

called at init from the go modules

Types

type Installer

type Installer func(MASer, *goja.Runtime, []interface{}) interface{}

type MASer

type MASer interface {
	VM() *goja.Runtime
	NetIOHeavy() (func(), error)
	NetIOLight() (func(), error)
	NetIOErr()
	IsDryRun() bool
	NetTimeout() time.Duration
	Logf(string, ...interface{})
	Diagf(string, ...interface{})
	Error(error)
	Fatal(error)
	TraceInfo() string
	Federation() string
}

Directories

Path Synopsis
ext
s3
std

Jump to

Keyboard shortcuts

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