inspect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	// contains filtered or unexported fields
}

Bridge connects hawk to the inspect site-auditing library. If initialization fails, all operations degrade gracefully and return empty results rather than errors.

func NewBridge

func NewBridge(opts ...inspectLib.Option) *Bridge

NewBridge creates a bridge to the inspect library with the given options. Returns a bridge that silently no-ops if initialization fails.

func (*Bridge) Ready

func (b *Bridge) Ready() bool

Ready reports whether the inspect bridge is initialized and usable.

func (*Bridge) Run

func (b *Bridge) Run(ctx context.Context, target string, opts ...inspectLib.Option) (*inspectLib.Report, error)

Run crawls the target URL and runs all configured checks, returning a complete report with findings and stats. Falls back silently if the bridge is not initialized.

Jump to

Keyboard shortcuts

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