result

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rand

func Rand(arrays ...[]string) chan []string

Types

type Rander

type Rander struct {
	Arrays [][]string
	Out    chan []string
}

type Result

type Result struct {
	sync.RWMutex
	TargetPaths map[string]map[string]struct{} `json:"target_paths,omitempty"`
	Targets     map[string]struct{}            `json:"targets,omitempty"`
	Skipped     map[string]map[string]struct{} `json:"skipped,omitempty"`
}

func NewResult

func NewResult() *Result

func (*Result) AddPathByResult

func (r *Result) AddPathByResult(k, v string)

func (*Result) AddSkipped

func (r *Result) AddSkipped(k, v string)

func (*Result) AddTarget

func (r *Result) AddTarget(target string)

func (*Result) DelSkipped

func (r *Result) DelSkipped(target, path string)

func (*Result) GetPathsByTarget

func (r *Result) GetPathsByTarget() map[string]map[string]struct{}

func (*Result) GetPathsCount

func (r *Result) GetPathsCount() int

func (*Result) GetSkippedCount

func (r *Result) GetSkippedCount() int

func (*Result) GetTargets

func (r *Result) GetTargets() chan string

func (*Result) HasPath

func (r *Result) HasPath(k string, v string) bool

func (*Result) HasPaths

func (r *Result) HasPaths() bool

func (*Result) HasSkipped

func (r *Result) HasSkipped(target, path string) bool

func (*Result) HasTarget

func (r *Result) HasTarget(target string) bool

func (*Result) HasTargets

func (r *Result) HasTargets() bool

func (*Result) IsEmpty

func (r *Result) IsEmpty() bool

func (*Result) Len

func (r *Result) Len() int

func (*Result) RemoveTargets

func (r *Result) RemoveTargets(k string)

type TargetResult

type TargetResult struct {
	TimeStamp     time.Time `json:"timestamp" csv:"timestamp"`
	URL           string    `json:"url" csv:"url"`
	Path          string    `json:"path"  csv:"path"`
	Title         string    `json:"title" csv:"title"`
	Host          string    `json:"host" csv:"host"`
	A             []string  `json:"a" csv:"a"`
	CNAME         []string  `json:"cname" csv:"cname"`
	Status        int       `json:"status" csv:"status"`
	ContentLength int64     `json:"content_length" csv:"content_length"`
	Server        string    `json:"server" csv:"server"`
	Technology    []string  `json:"technology" csv:"technology"`
}

func (*TargetResult) ToString

func (tr *TargetResult) ToString() string

Jump to

Keyboard shortcuts

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