engine

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDesiredStateNotGenerated = errors.New("desired state was not generated")
)

Functions

This section is empty.

Types

type Engine

type Engine struct {
	*scheduler.Scheduler
	// contains filtered or unexported fields
}

Engine is a Webassembly job scheduler with configurable host APIs

func New

func New() *Engine

New creates a new Engine with the default API

func NewWithAPI

func NewWithAPI(api api.HostAPI) *Engine

NewWithAPI creates a new Engine with the given API

func (*Engine) Register

func (e *Engine) Register(name string, ref *tenant.WasmModuleRef, opts ...scheduler.Option) scheduler.JobFunc

Register registers a Wasm module by reference

func (*Engine) RegisterFromFile

func (e *Engine) RegisterFromFile(name, filename string, opts ...scheduler.Option) (scheduler.JobFunc, error)

RegisterFromFile registers a Wasm module by reference

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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