Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶ added in v0.13.0
type Bundle struct {
	Filename string
	Source   string
	Program  *goja.Program
	Options  lib.Options
	BaseInitContext *InitContext
	Env map[string]string
}
    A Bundle is a self-contained bundle of scripts and resources. You can use this to produce identical BundleInstance objects.
func NewBundleFromArchive ¶ added in v0.15.0
func (*Bundle) Instantiate ¶ added in v0.13.0
func (b *Bundle) Instantiate() (*BundleInstance, error)
Instantiates a new runtime from this bundle.
func (*Bundle) MakeArchive ¶ added in v0.15.0
type BundleInstance ¶ added in v0.13.0
A BundleInstance is a self-contained instance of a Bundle.
type Console ¶ added in v0.10.0
func NewConsole ¶ added in v0.13.0
func NewConsole() *Console
type InitContext ¶ added in v0.13.0
type InitContext struct {
	// Console object.
	Console *Console
	// contains filtered or unexported fields
}
    Provides APIs for use in the init context.
func NewInitContext ¶ added in v0.13.0
type Runner ¶
type Runner struct {
	Bundle *Bundle
	Logger *log.Logger
	Dialer *netext.Dialer
	// contains filtered or unexported fields
}
    func NewFromBundle ¶ added in v0.15.0
func (*Runner) ApplyOptions ¶
func (*Runner) GetDefaultGroup ¶ added in v0.5.0
func (*Runner) GetOptions ¶
func (*Runner) MakeArchive ¶ added in v0.15.0
 Click to show internal directories. 
   Click to hide internal directories.