jsext

package
v1.51.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const PACClientVersion = "1.0"

Variables

This section is empty.

Functions

func AddConvertAddr added in v1.50.0

func AddConvertAddr(vm *goja.Runtime) error

func AddDNSDomainIs added in v1.50.0

func AddDNSDomainIs(vm *goja.Runtime) error

func AddDNSDomainLevels added in v1.50.0

func AddDNSDomainLevels(vm *goja.Runtime) error

func AddDNSResolve added in v1.50.0

func AddDNSResolve(vm *goja.Runtime) error

func AddDNSResolveEx added in v1.51.0

func AddDNSResolveEx(vm *goja.Runtime) error

func AddDateRange added in v1.50.0

func AddDateRange(vm *goja.Runtime) error

func AddFileReader added in v1.39.0

func AddFileReader(vm *goja.Runtime) error

func AddGetClientVersion added in v1.51.0

func AddGetClientVersion(vm *goja.Runtime) error

func AddIsInNet added in v1.50.0

func AddIsInNet(vm *goja.Runtime) error

func AddIsInNetEx added in v1.51.0

func AddIsInNetEx(vm *goja.Runtime) error

func AddIsPlainHostName added in v1.50.0

func AddIsPlainHostName(vm *goja.Runtime) error

func AddIsResolvable added in v1.50.0

func AddIsResolvable(vm *goja.Runtime) error

func AddIsResolvableEx added in v1.51.0

func AddIsResolvableEx(vm *goja.Runtime) error

func AddLocalHostOrDomainIs added in v1.50.0

func AddLocalHostOrDomainIs(vm *goja.Runtime) error

func AddMMDBReader added in v1.48.0

func AddMMDBReader(vm *goja.Runtime) error

func AddMyIPAddress added in v1.50.0

func AddMyIPAddress(vm *goja.Runtime) error

func AddMyIPAddressEx added in v1.51.0

func AddMyIPAddressEx(vm *goja.Runtime) error

func AddPOBindings added in v1.50.0

func AddPOBindings(vm *goja.Runtime) error

func AddPrinter

func AddPrinter(vm *goja.Runtime, logger *clog.CondLogger) error

func AddShExpMatch added in v1.50.0

func AddShExpMatch(vm *goja.Runtime) error

func AddSortIPAddressList added in v1.51.0

func AddSortIPAddressList(vm *goja.Runtime) error

func AddStopAddressIteration added in v1.41.0

func AddStopAddressIteration(vm *goja.Runtime) error

func AddTimeRange added in v1.50.0

func AddTimeRange(vm *goja.Runtime) error

func AddWeekdayRange added in v1.50.0

func AddWeekdayRange(vm *goja.Runtime) error

func ConfigureRuntime added in v1.40.0

func ConfigureRuntime(vm *goja.Runtime) error

func ExportEnv added in v1.40.0

func ExportEnv(vm *goja.Runtime) error

func GetEnvSharedDynamicObject added in v1.40.0

func GetEnvSharedDynamicObject() *goja.Object

Types

type JSDstInfo

type JSDstInfo struct {
	Network      string  `json:"network"`
	OriginalHost string  `json:"originalHost"`
	ResolvedHost *string `json:"resolvedHost"`
	Port         uint16  `json:"port"`
	Preview      bool    `json:"preview"`
}

func JSDstInfoFromContext

func JSDstInfoFromContext(ctx context.Context, network, address string) (*JSDstInfo, error)

type JSRequestInfo

type JSRequestInfo struct {
	Method           string      `json:"method"`
	URL              string      `json:"url"`
	Proto            string      `json:"proto"`
	ProtoMajor       int         `json:"protoMajor"`
	ProtoMinor       int         `json:"protoMinor"`
	Header           http.Header `json:"header"`
	ContentLength    int64       `json:"contentLength"`
	TransferEncoding []string    `json:"transferEncoding"`
	Host             string      `json:"host"`
	RemoteAddr       string      `json:"remoteAddr"`
	RequestURI       string      `json:"requestURI"`
}

func JSRequestInfoFromRequest

func JSRequestInfoFromRequest(req *http.Request) *JSRequestInfo

type Resolver added in v1.50.0

type Resolver interface {
	LookupNetIP(context.Context, string, string) ([]netip.Addr, error)
}
var DefaultResolver Resolver = net.DefaultResolver

Jump to

Keyboard shortcuts

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