Documentation ¶
Index ¶
- Variables
- type ScriptEngine
- func (eng *ScriptEngine) Constant(name, value string)
- func (eng *ScriptEngine) Execute(script string) error
- func (eng *ScriptEngine) ExecuteFile(filepath string)
- func (eng *ScriptEngine) ExecuteFunction(name, script string) (string, error)
- func (eng *ScriptEngine) GetVar(name, script string) (interface{}, error)
- func (eng *ScriptEngine) SetAsset(path string)
- func (eng *ScriptEngine) Validate(script string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Agents = make(map[string]string) AgentAccessKey string )
Functions ¶
This section is empty.
Types ¶
type ScriptEngine ¶
func New ¶
func New() *ScriptEngine
func (*ScriptEngine) Constant ¶
func (eng *ScriptEngine) Constant(name, value string)
func (*ScriptEngine) Execute ¶
func (eng *ScriptEngine) Execute(script string) error
executes commands
func (*ScriptEngine) ExecuteFile ¶
func (eng *ScriptEngine) ExecuteFile(filepath string)
read javascript file and execute
func (*ScriptEngine) ExecuteFunction ¶
func (eng *ScriptEngine) ExecuteFunction(name, script string) (string, error)
func (*ScriptEngine) GetVar ¶
func (eng *ScriptEngine) GetVar(name, script string) (interface{}, error)
func (*ScriptEngine) SetAsset ¶
func (eng *ScriptEngine) SetAsset(path string)
func (*ScriptEngine) Validate ¶
func (eng *ScriptEngine) Validate(script string) error
Click to show internal directories.
Click to hide internal directories.