nexusphp

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package nexusphp implements the NexusPHP-schema CloakBrowser driver. Phase 1 sentinel: T11 must pass before T12-T14 (Unit3D, Gazelle, mTorrent CloakBrowser drivers) may proceed in parallel (Metis AP-1).

The driver is the v2.0 fallback transport for NexusPHP-schema sites where cookie-only HTTP probing is blocked by Cloudflare/ja3 fingerprinting. It is invoked by the cloakdriver dispatcher when a site has EnableCloakFallback=true and the HTTP probe (T4) returned a fallback-eligible status (RATE_LIMITED / CHALLENGE / NETWORK_ERROR).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Manager cloakdriver.ManagerClient
}

Driver is the NexusPHP-schema CloakBrowser transport.

func NewDriver

func NewDriver(manager cloakdriver.ManagerClient) *Driver

NewDriver constructs a NexusPHP CloakBrowser driver bound to the given Manager client (T8).

func (*Driver) Probe

func (d *Driver) Probe(
	ctx context.Context,
	indexURL string,
	cookies []*http.Cookie,
	profileID string,
) (*sitelogin.ProbeResult, error)

Probe runs the full CloakBrowser lifecycle (launch → CDP connect → inject cookies → navigate → extract → close) and returns a populated *sitelogin.ProbeResult with Source=ProbeSourceCloak.

The (result, err) tuple follows v1 probe convention: classification errors are encoded into the result; only programming-level errors (nil manager, empty URL, empty profile) return non-nil err.

R35 (clear-before-inject) is enforced inside CDPSession.InjectCookies. The launched profile is always Stop()ped via defer, even on error. Timestamps in the result are UTC-normalised.

Jump to

Keyboard shortcuts

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