engine

package
v0.0.0-...-26b8db2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseRuntime

func GetBaseRuntime() *otto.Otto

GetBaseRuntime returns base runtime

func GetEventRuntime

func GetEventRuntime(eventName string) *otto.Otto

GetEventRuntime :

func GetHandlerRuntime

func GetHandlerRuntime(ctx *fasthttp.RequestCtx, opt HandlerRuntimeInfo) *otto.Otto

GetHandlerRuntime creates a copy of base runtime and add response and request object on it then return it

Types

type HandlerRuntimeInfo

type HandlerRuntimeInfo struct {
	// URL paramaters. By default it is nil
	Params map[string]string
}

HandlerRuntimeInfo contains information for handler runtime

Directories

Path Synopsis
js

Jump to

Keyboard shortcuts

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