package
0.0.0-20250311023717-5c21e974eed8
Repository: https://github.com/thrasher-corp/gocryptotrader.git
Documentation: pkg.go.dev

# Functions

NewManager creates a new instance of script manager.
SetDefaultScriptOutput sets default output file for scripts.

# Constants

DefaultMaxVirtualMachines max number of virtual machines that can be loaded at one time.
DefaultTimeoutValue default timeout value for virtual machines.
ErrNoVMFound error returned when no virtual machine is found.
ErrScriptFailedValidation message to display when a script fails its validation.
Name is an exported subsystem name.
StatusFailure text to display in script_event table when script execution fails.
StatusSuccess text to display in script_event table on successful execution.
TypeCreate text to display in script_event table when a VM is created.
TypeExecute text to display in script_event table when a script is executed.
TypeLoad text to display in script_event table when a VM is loaded.
TypeRead text to display in script_event table when a script contents is read.
TypeStop text to display in script_event table when a running script is stopped.

# Variables

AllVMSync stores all current Virtual Machine instances.
ErrNilSubsystem returned when script manager has not been set up.
ErrNoVMLoaded error message displayed if a virtual machine has not been initialised.
ErrScriptingDisabled error message displayed when gctscript is disabled.
ScriptPath path to load/save scripts.
VMSCount running total count of Virtual Machines.

# Structs

Config user configurable options for gctscript.
Error interface to meet error requirements.
GctScriptManager loads and runs GCT Tengo scripts.
VM contains a pointer to "script" (precompiled source) and "compiled" (compiled byte code) instances.