vm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const JsSuffix = ".js"
View Source
const KeyGetMem = "_otto_getMem"
View Source
const KeyGetParam = "_otto_getParam"
View Source
const KeyLog = "_otto_log"
View Source
const KeyMqtt = "_otto_mqtt"
View Source
const KeyParams = "_otto_params"
View Source
const KeySetMem = "_otto_setMem"
View Source
const KeyTelegram = "_otto_telegram"

Variables

This section is empty.

Functions

func HandleMqttMessage

func HandleMqttMessage(topic string, payload []byte)

func HandleRestMessage

func HandleRestMessage(device *model.Device, payload string)

func InitVM

func InitVM(cfg config.IConfiguration, services model.IServiceFactory)

func ReloadScripts

func ReloadScripts() error

Types

type HandlerScript

type HandlerScript struct {
	// contains filtered or unexported fields
}

type JScriptVM

type JScriptVM struct {
	// contains filtered or unexported fields
}

type ScriptMap

type ScriptMap = map[string]*otto.Script

Jump to

Keyboard shortcuts

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