scope

package
v0.0.0-...-ded5ba8 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainScope

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

type Scope

type Scope struct {
	ScopeItems []DomainScope
}

Scope groups different scope items

func (*Scope) AddScopeItem

func (s *Scope) AddScopeItem(domain string, scope string) []DomainScope

AddScopeItem allows to add a new item to the scope

func (*Scope) CreateScopeItemsFromUrls

func (s *Scope) CreateScopeItemsFromUrls(paths []string, scope string)

CreateScopeItemsFromUrls allow to create multiple scope items from multiple urls

func (*Scope) IsInScope

func (s *Scope) IsInScope(path string) bool

IsInScope checks if a domain is in the current scope

Jump to

Keyboard shortcuts

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