python

package
v0.0.0-...-14e3c9d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FFIInterpreter

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

func NewFFIInterpreter

func NewFFIInterpreter() (*FFIInterpreter, error)

func (*FFIInterpreter) Close

func (i *FFIInterpreter) Close()

func (*FFIInterpreter) ExecCode

func (i *FFIInterpreter) ExecCode(ctx context.Context, code string) (string, error)

func (*FFIInterpreter) ExecScript

func (i *FFIInterpreter) ExecScript(ctx context.Context, scriptPath string, args ...string) (string, error)

type Interpreter

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

func NewInterpreter

func NewInterpreter() (*Interpreter, error)

func (*Interpreter) Close

func (i *Interpreter) Close() error

func (*Interpreter) ExecutePythonScript

func (i *Interpreter) ExecutePythonScript(scriptPath string, args []string) (string, error)

type ScriptRunner

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

func NewScriptRunner

func NewScriptRunner(toolsPath string, rocketMQAddrs []string, eventTopic string) (*ScriptRunner, error)

func (*ScriptRunner) Close

func (r *ScriptRunner) Close() error

func (*ScriptRunner) RunToolScript

func (r *ScriptRunner) RunToolScript(toolName string, args map[string]interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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