shared

package
v2.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidDomain

func IsValidDomain(url string) bool

func ParseRegexes added in v2.0.16

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 added in v2.0.16

type RegexFlag struct {
	Regexes map[string]string
}

func (*RegexFlag) Set added in v2.0.16

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

func (*RegexFlag) String added in v2.0.16

func (r *RegexFlag) String() string

func (*RegexFlag) Type added in v2.0.16

func (r *RegexFlag) Type() string

func (*RegexFlag) Value added in v2.0.16

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