Documentation ¶
Index ¶
- Variables
- func ExecTaskCallback(vm *goja.Runtime, caller string, args ...interface{}) (ret goja.Value, err error)
- func HasFunction(vm *goja.Runtime, caller string) bool
- func IsNotExtractError(err error) bool
- func RunWithTimeout(vm *goja.Runtime, timeout time.Duration, fn func() (goja.Value, error)) (ret goja.Value, err error)
- func ThrowExecTaskErr(scenario string, err error) bool
- func VMNew() *goja.Runtime
- func VMNewWithVendor(p interfaces.Vendor, network interfaces.RequestOptionsNetwork) *goja.Runtime
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT_GEOIP_SCRIPT string
View Source
var DEFAULT_IP_SCRIPT string
View Source
var PREDEFINED_SCRIPT string
Functions ¶
func ExecTaskCallback ¶
func IsNotExtractError ¶
func RunWithTimeout ¶
func ThrowExecTaskErr ¶
func VMNewWithVendor ¶
func VMNewWithVendor(p interfaces.Vendor, network interfaces.RequestOptionsNetwork) *goja.Runtime
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.