Versions in this module Expand all Collapse all v3 v3.3.4 Sep 30, 2024 Changes in this version + var Dialer *fastdialer.Dialer + var ErrHostDenied = errorutil.NewWithFmt("host %v dropped by network policy") + var ErrURLDenied = errorutil.NewWithFmt("headless: url %v dropped by rule: %v") + var MaxBytesBufferAllocOnLowMemory = env.GetEnvOrDefault("MEMGUARDIAN_ALLOC", 0) + var MaxThreadsOnLowMemory = env.GetEnvOrDefault("MEMGUARDIAN_THREADS", 0) + var Memoizer *memoize.Memoizer + var NetworkPolicy *networkpolicy.NetworkPolicy + func Close() + func FailWithReason(page *rod.Page, e *proto.FetchRequestPaused) error + func GetDialer() *fastdialer.Dialer + func GlobalGuardBytesBufferAlloc() error + func GlobalRestoreBytesBufferAlloc() + func GuardThreadsOrDefault(current int) int + func Init(options *types.Options) error + func InitHeadless(localFileAccess bool, np *networkpolicy.NetworkPolicy) + func IsHostAllowed(targetUrl string) bool + func IsLFAAllowed() bool + func IsLowOnMemory() bool + func NewJSRuntime() *goja.Runtime + func NormalizePath(filePath string) (string, error) + func ShouldInit() bool + func StartActiveMemGuardian(ctx context.Context) + func StopActiveMemGuardian() + func ValidateNFailRequest(page *rod.Page, e *proto.FetchRequestPaused) error