js

package
Version: v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 17 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

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

ExecuteJavascript accepts a javascript string 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL