js

package
v0.0.0-...-0446034 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectLevelDB

func InjectLevelDB(jsEngine *JSEngine, db *leveldb.DB)

func InjectRequestDetails

func InjectRequestDetails(jsEngine *JSEngine, w http.ResponseWriter, r *http.Request)

Types

type JSEngine

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

func CreateOtto

func CreateOtto() *JSEngine

func (*JSEngine) Get

func (ptr *JSEngine) Get(name string) (otto.Value, error)

func (*JSEngine) Lock

func (ptr *JSEngine) Lock()

func (*JSEngine) Run

func (ptr *JSEngine) Run(code string) (otto.Value, error)

func (*JSEngine) Set

func (ptr *JSEngine) Set(name string, value interface{}) error

func (*JSEngine) Unlock

func (ptr *JSEngine) Unlock()

Jump to

Keyboard shortcuts

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