mockHelper

package
v0.0.0-...-08474b0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrResponse mockGenerator.Response
)

Functions

func ExecScript

func ExecScript(script string) (err error)

func GetRespValueFromGoja

func GetRespValueFromGoja() (err error)

func InitJsRuntime

func InitJsRuntime(tenantId consts.TenantId, projectId uint)

func SetReqValueToGoja

func SetReqValueToGoja(req mockGenerator.Request)

func SetRespValueToGoja

func SetRespValueToGoja(resp mockGenerator.Response)

func SetValueToGoja

func SetValueToGoja(name string, value interface{})

Types

type JsVm

type JsVm struct {
	JsRuntime *goja.Runtime
}

Jump to

Keyboard shortcuts

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