js

package
v4.1.20 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnableFetch bool = false

EnableFetch sets whether to enable fetch() in JS execution environment

Functions

func ExecuteJavaScript added in v4.1.1

func ExecuteJavaScript(file string, devMode bool, variables map[string]string) (*models.DNSConfig, error)

ExecuteJavaScript accepts a javascript file and runs it, returning the resulting dnsConfig.

func ExecuteJavascriptString

func ExecuteJavascriptString(script []byte, devMode bool, variables map[string]string) (*models.DNSConfig, error)

ExecuteJavascriptString accepts a string containing javascript and runs it, returning the resulting dnsConfig.

func GetHelpers

func GetHelpers(devMode bool) string

GetHelpers returns the contents of helpers.js, or the embedded version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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