script

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadScript

func ReadScript(fn string) (string, error)

Types

type Engine

type Engine struct {
	core.EventNotifier
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(store ostore.IObjectStore) *Engine

func (*Engine) GetProperties

func (e *Engine) GetProperties(symbol string) (map[string]any, error)

func (*Engine) HasInterface

func (e *Engine) HasInterface(symbol string) bool

func (*Engine) HasSequence

func (e *Engine) HasSequence(sequenceId string) bool

func (*Engine) InvokeOperation

func (e *Engine) InvokeOperation(symbol, name string, args []any) (any, error)

func (*Engine) LoadScript

func (e *Engine) LoadScript(name string, script string) (any, error)

func (*Engine) PlayAllSequences added in v0.8.0

func (e *Engine) PlayAllSequences(ctx context.Context) error

func (*Engine) PlaySequence

func (e *Engine) PlaySequence(ctx context.Context, sequenceId string) error

func (*Engine) SetProperties

func (e *Engine) SetProperties(symbol string, props map[string]any) error

func (*Engine) StopAllSequences added in v0.8.0

func (e *Engine) StopAllSequences()

func (*Engine) StopSequence added in v0.8.0

func (e *Engine) StopSequence(sequenceId string) error

Jump to

Keyboard shortcuts

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