engine

package
v0.0.0-...-979fa9e Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append[TSource any, TResult any](src enumerable.Enumerable[TSource], instances ...module.Instance) enumerable.Enumerable[TResult]

Append appends the given Module Instances to the given source Enumerable, returning the result.

It will try and find the optimal way to communicate between the source and the new module instance, returning an enumerable of a type that best fits the situation. The source can be any type that implements the Enumerable interface, it does not need to be a lens module instance.

func NewInstance

func NewInstance(module module.Module, paramSets ...map[string]any) (module.Instance, error)

func NewInverse

func NewInverse(module module.Module, paramSets ...map[string]any) (module.Instance, error)

func NewModule

func NewModule(runtime module.Runtime, path string) (module.Module, error)

NewModule instantiates a new module from the WAT code at the given path.

The path must have one of the following prefixes: - "file:" local filesystem file - "http:" remote file served over http - "https:" remote file served over https

This is a fairly expensive operation.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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