script

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 8 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.Notifier
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine() *Engine

func (*Engine) GetProperties

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

func (*Engine) HasInterface

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

func (*Engine) HasSequence

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

func (*Engine) InvokeOperation

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

func (*Engine) LoadScript

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

func (*Engine) PlayAllSequences added in v0.8.0

func (s *Engine) PlayAllSequences() error

func (*Engine) PlaySequence

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

func (*Engine) SetProperties

func (s *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)

Jump to

Keyboard shortcuts

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