types

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TyLogJs = 10000
)

日志类型

Variables

View Source
var (
	ErrDupName            = errors.New("ErrDupName")
	ErrJsReturnNotObject  = errors.New("ErrJsReturnNotObject")
	ErrJsReturnKVSFormat  = errors.New("ErrJsReturnKVSFormat")
	ErrJsReturnLogsFormat = errors.New("ErrJsReturnLogsFormat")
	//ErrInvalidFuncFormat 错误的函数调用格式(没有_)
	ErrInvalidFuncFormat = errors.New("chain33.js: invalid function name format")
	//ErrInvalidFuncPrefix not exec_ execloal_ query_
	ErrInvalidFuncPrefix = errors.New("chain33.js: invalid function prefix format")
	//ErrFuncNotFound 函数没有找到
	ErrFuncNotFound = errors.New("chain33.js: invalid function name not found")
	ErrSymbolName   = errors.New("chain33.js: ErrSymbolName")
	ErrExecerName   = errors.New("chain33.js: ErrExecerName")
	ErrDBType       = errors.New("chain33.js: ErrDBType")
)

错误常量

View Source
var JsX = "jsvm"

JsX 插件名字

Functions

This section is empty.

Types

type JsType

type JsType struct {
	types.ExecTypeBase
}

JsType 类型

func NewType

func NewType() *JsType

NewType 新建一个plugin 类型

func (*JsType) GetLogMap

func (t *JsType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取日志映射

func (*JsType) GetPayload

func (t *JsType) GetPayload() types.Message

GetPayload 获取 交易构造

func (*JsType) GetTypeMap

func (t *JsType) GetTypeMap() map[string]int32

GetTypeMap 获取类型映射

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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