Help us shape the future of Go! Take the 2026 Go Developer Survey

js

package
v2.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSEngine

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

func New

func New() *JSEngine

func (*JSEngine) CompileScript

func (js *JSEngine) CompileScript(name, source string) (
	plugin.ScriptExecuter, error,
)

type JScript

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

func (*JScript) HasRequestFn

func (s *JScript) HasRequestFn() bool

func (*JScript) HasResponseFn

func (s *JScript) HasResponseFn() bool

func (*JScript) ReponseFn

func (s *JScript) ReponseFn(
	c context.Context,
	vars map[string]interface{},
	role string,
	userID interface{},
	gfn plugin.GraphQLFn,
) map[string]interface{}

func (*JScript) RequestFn

func (s *JScript) RequestFn(
	c context.Context,
	vars map[string]interface{},
	role string,
	userID interface{},
	gfn plugin.GraphQLFn,
) map[string]interface{}

Jump to

Keyboard shortcuts

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