Versions in this module Expand all Collapse all v0 v0.2.0 Aug 17, 2026 Changes in this version + var ErrChromiumNotFound = errors.New(...) + var Version = "0.2.0" + func ChromiumPath(explicit string) string + func DefaultBlockHosts() []string + func KillBrowsers() int + func LibraryNotes(found []string) []string + func LibraryWeight(found []string) (float64, string) + type Asset struct + Body []byte + MIME string + URL string + type Browser struct + func Launch(ctx context.Context, opts Options) (*Browser, error) + func (b *Browser) ChromiumVersion() string + func (b *Browser) Close() + func (b *Browser) ProbeFrameProduction(ctx context.Context) (FrameProbe, error) + func (b *Browser) SetOptions(o Options) + func (b *Browser) Sweep(ctx context.Context, rawURL string, guard NavGuard) (*Result, error) + type CanvasShot struct + Checkpoint int + PNG []byte + Path string + Share float64 + Uniform bool + type FrameProbe struct + Elapsed time.Duration + IO bool + Ticks int + type LibrarySpec struct + Class string + Global string + Name string + Note string + Selector string + Weight float64 + func LibrarySpecs() ([]LibrarySpec, error) + type NavGuard func(u *url.URL) error + type Options struct + AcceptLanguage string + BlockHosts []string + BlockURLPatterns []string + Budget time.Duration + CanvasShareGate float64 + CaptureCanvas bool + ChromePath string + CollectAssets bool + CollectCorpus bool + DeviceScale float64 + FirstSettle time.Duration + Headless bool + LatentBudget int + LoadBudget time.Duration + Locale string + Logf func(format string, args ...any) + MaxAssetBytes int64 + MaxAssetsTotal int64 + MaxCheckpoints int + MaxCorpusBytes int + MaxScrollPx float64 + NavTimeout time.Duration + NoSandbox bool + NodeBudget int + Passes int + Proxy string + ReducedMotion bool + RevealFloor time.Duration + SettleFloor time.Duration + SettleFrames int + SettleTimeout time.Duration + StableCheckpoints int + StepRatio float64 + SweepBudget time.Duration + Timezone string + UserAgent string + ViewportH int + ViewportW int + func DefaultOptions() Options + func (o *Options) ScaleTo(total time.Duration) + type Result struct + Assets []Asset + Blocked bool + BlockedReason string + CanvasShots map[string]*CanvasShot + Corpus *corroborate.Index + EnteredGate string + EntryGate string + FinalURL string + Libraries []string + Merged *capture.Merged + Notes []string + OpenedDisclosures []string + ReachedBottom bool + RequestedURL string + Scene *capture.SceneIntrospection + Status int64 + Timing Timing + Trace Trace + type Timing struct + Checkpoints int + FirstSettle time.Duration + Load time.Duration + Navigate time.Duration + Passes int + SettleMiss int + SettleWaits int + Sweep time.Duration + Total time.Duration + type Trace struct + BlockHostsHash string + CaptureHash string + Chromium string + DeviceScale float64 + FirstSettle string + Flags []string + Locale string + MaxCheckpoints int + Passes int + ReducedMotion bool + SettleFloor string + SettleFrames int + SettleTimeout string + SieveVersion string + StableCheckpts int + StepRatio float64 + SweepBudget string + Timezone string + UserAgent string + ViewportH int + ViewportW int