scope

package
v0.0.0-...-d69ec9c Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages scope for crawling process

func NewManager

func NewManager(inScope, outOfScope []string, fieldScope string, noScope bool) (*Manager, error)

NewManager returns a new scope manager for crawling

func (*Manager) Validate

func (m *Manager) Validate(URL *url.URL, rootHostname string) (bool, error)

Validate returns true if the URL matches scope rules

Jump to

Keyboard shortcuts

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