runtime

package
v1.14.0-beta.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Cmd string `json:"cmd"`
	Arg string `json:"arg"`
}

type Control

type Control struct {
	SymbolName string                 `json:"symbolName"`
	Meta       *Meta                  `json:"meta,omitempty"`
	PluginType string                 `json:"pluginType"`
	DataSource string                 `json:"dataSource,omitempty"`
	Config     map[string]interface{} `json:"config,omitempty"`
}

type FuncData

type FuncData struct {
	Func string      `json:"func"`
	Arg  interface{} `json:"arg"`
}

type FuncMeta

type FuncMeta struct {
	Meta
	FuncId int `json:"funcId"`
}

type Meta

type Meta struct {
	RuleId     string `json:"ruleId"`
	OpId       string `json:"opId"`
	InstanceId int    `json:"instanceId"`
}

type PluginMeta

type PluginMeta struct {
	Name       string `json:"name"`
	Version    string `json:"version"`
	WasmFile   string `json:"wasmFile"`
	WasmEngine string `json:"wasmEngine"`
}

type WasmFunc

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

func NewWasmFunc

func NewWasmFunc(symbolName string, reg *PluginMeta) (*WasmFunc, error)

func (*WasmFunc) Exec

func (f *WasmFunc) Exec(args []interface{}, ctx api.FunctionContext) (interface{}, bool)

func (*WasmFunc) ExecWasmFunc

func (f *WasmFunc) ExecWasmFunc(args []interface{}) ([]interface{}, error)

func (*WasmFunc) IsAggregate

func (f *WasmFunc) IsAggregate() bool

func (*WasmFunc) Validate

func (f *WasmFunc) Validate(args []interface{}) error

Jump to

Keyboard shortcuts

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