scripts

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 9 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) EvalString added in v0.0.5

func (s *Engine) EvalString(str string) 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) Ctx added in v0.0.5

func (j *Javascript) Ctx() *candyjs.Context

func (*Javascript) Do

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

func (*Javascript) EvalString added in v0.0.5

func (j *Javascript) EvalString(str string) 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 Log added in v0.0.5

type Log struct {
}

func (*Log) Debug added in v0.0.5

func (l *Log) Debug(v ...interface{})

func (*Log) Error added in v0.0.5

func (l *Log) Error(v ...interface{})

func (*Log) Info added in v0.0.5

func (l *Log) Info(v ...interface{})

func (*Log) Warn added in v0.0.5

func (l *Log) Warn(v ...interface{})

type Magic

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

type Model added in v0.0.5

type Model struct {
}

func (*Model) NewDevice added in v0.0.5

func (m *Model) NewDevice() *models.Device

func (*Model) NewFlow added in v0.0.5

func (m *Model) NewFlow() *models.Flow

func (*Model) NewNode added in v0.0.5

func (m *Model) NewNode() *models.Node

type Node added in v0.0.5

type Node struct {
}

func (*Node) Send added in v0.0.5

func (m *Node) Send(protocol string, node *models.Node, device *models.Device, command []byte) (result common.Result)

send date to node method: node.send

type Notifr added in v0.0.5

type Notifr struct {
}

func (*Notifr) NewEmail added in v0.0.5

func (n *Notifr) NewEmail() *notifr.Email

func (*Notifr) NewPush added in v0.0.5

func (n *Notifr) NewPush() *notifr.Push

func (*Notifr) NewSms added in v0.0.5

func (n *Notifr) NewSms() *notifr.Sms

func (*Notifr) Send added in v0.0.5

func (n *Notifr) Send(msg notifr.Message)

Jump to

Keyboard shortcuts

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