scripts

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	IsRun bool
	// contains filtered or unexported fields
}

func New

func New(s *models.Script) (engine *Engine, err error)

func (*Engine) Close

func (s *Engine) Close()

func (*Engine) Compile

func (s *Engine) Compile() error

func (*Engine) Do

func (s *Engine) Do() (result string, err error)

func (*Engine) DoFull

func (s *Engine) DoFull() (res string, err error)

func (*Engine) Get

func (s *Engine) Get() Magic

func (*Engine) Print

func (s *Engine) Print(v ...interface{})

func (*Engine) PushFunction

func (s *Engine) PushFunction(name string, i interface{}) (int, error)

func (*Engine) PushStruct

func (s *Engine) PushStruct(name string, i interface{}) (int, error)

func (*Engine) Update

func (s *Engine) Update() (err error)

type Javascript

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

func (*Javascript) Close

func (j *Javascript) Close()

func (*Javascript) Compile

func (j *Javascript) Compile() (err error)

func (*Javascript) Do

func (j *Javascript) Do() (result string, err error)

func (*Javascript) Init

func (j *Javascript) Init() (err error)

func (*Javascript) PushFunction

func (j *Javascript) PushFunction(name string, s interface{}) (int, error)

func (*Javascript) PushStruct

func (j *Javascript) PushStruct(name string, s interface{}) (int, error)

type Lua

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

func (*Lua) Close

func (l *Lua) Close()

func (*Lua) Compile

func (j *Lua) Compile() (err error)

func (*Lua) Do

func (l *Lua) Do() (result string, err error)

func (*Lua) Init

func (l *Lua) Init() (err error)

func (*Lua) PushFunction

func (j *Lua) PushFunction(name string, i interface{}) (int, error)

func (*Lua) PushStruct

func (j *Lua) PushStruct(name string, i interface{}) (int, error)

type Magic

type Magic interface {
	Init() error
	Do() (string, error)
	Compile() error
	PushStruct(string, interface{}) (int, error)
	PushFunction(string, interface{}) (int, error)
	Close()
}

Jump to

Keyboard shortcuts

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