scripts

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Server *teaconfigs.ServerConfig
}

type Engine

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

脚本引擎

func NewEngine

func NewEngine() *Engine

获取新引擎

func (*Engine) Charts

func (this *Engine) Charts() []maps.Map

获取Widget中的图表对象

func (*Engine) Output

func (this *Engine) Output() []string

获取控制台输出

func (*Engine) RunCode

func (this *Engine) RunCode(code string) error

运行Widget代码

func (*Engine) SetContext

func (this *Engine) SetContext(context *Context)

设置上下文信息

func (*Engine) SetMongo added in v0.1.2

func (this *Engine) SetMongo(b bool)

设置MongoDB是否可用

Jump to

Keyboard shortcuts

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