wasmvm

package
v0.0.0-...-e58dc6b Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel byte
const (
	Debug LogLevel = iota
	Info
	Error
)

type ParamType

type ParamType byte
const (
	Json ParamType = iota
	Raw
)

type WasmStateMachine

type WasmStateMachine struct {
	*WasmStateReader
}

func NewWasmStateMachine

func NewWasmStateMachine() *WasmStateMachine

type WasmStateReader

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

func NewWasmStateReader

func NewWasmStateReader() *WasmStateReader

func (*WasmStateReader) Exists

func (i *WasmStateReader) Exists(name string) bool

func (*WasmStateReader) GetServiceMap

func (i *WasmStateReader) GetServiceMap() map[string]func(*exec.ExecutionEngine) (bool, error)

func (*WasmStateReader) Invoke

func (i *WasmStateReader) Invoke(methodName string, engine *exec.ExecutionEngine) (bool, error)

func (*WasmStateReader) MergeMap

func (i *WasmStateReader) MergeMap(mMap map[string]func(*exec.ExecutionEngine) (bool, error)) bool

func (*WasmStateReader) Register

func (i *WasmStateReader) Register(name string, handler func(*exec.ExecutionEngine) (bool, error)) bool

type WasmVmService

type WasmVmService struct {
	Store         store.LedgerStore
	CloneCache    *storage.CloneCache
	ContextRef    context.ContextRef
	Notifications []*event.NotifyEventInfo
	Code          []byte
	Tx            *types.Transaction
	Time          uint32
}

Jump to

Keyboard shortcuts

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