shared

package
v2.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidDomain

func IsValidDomain(url string) bool

func ParseRegexes

func ParseRegexes(stream string) (map[string]string, error)

Types

type Options

type Options struct {
	URL   string `name:"url"`
	Level int    `name:"level"`
	//LiveMode        bool              `name:"live"`
	ExportFile      string            `name:"save to file"`
	RegexMap        map[string]string `name:"regexes"`
	StatusResponses []int             `name:"exclude codes"`
	IncludedUrls    []string          `name:"include"`
	Workers         int               `name:"workers"`
	Delay           int               `name:"delay"`
	Proxy           *urlTool.URL      `name:"proxy"`
	TimeOut         int               `name:"timeout"`
	UserAgent       string            `name:"user agent"`
}

func ValidateThenBuildOption

func ValidateThenBuildOption(cmd *cobra.Command) (*Options, error)

func (*Options) BuildOptionBanner

func (o *Options) BuildOptionBanner() string

func (*Options) ManipulateData

func (o *Options) ManipulateData()

func (*Options) PrintBanner

func (o *Options) PrintBanner()

type RegexFlag

type RegexFlag struct {
	Regexes map[string]string
}

func (*RegexFlag) Set

func (r *RegexFlag) Set(value string) error

func (*RegexFlag) String

func (r *RegexFlag) String() string

func (*RegexFlag) Type

func (r *RegexFlag) Type() string

func (*RegexFlag) Value

func (r *RegexFlag) Value() map[string]string

Jump to

Keyboard shortcuts

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