result

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	Target     string    `json:"target" csv:"target"`
	Path       string    `json:"path"  csv:"path"`
	Title      string    `json:"title" csv:"title"`
	Status     int       `json:"status" csv:"status"`
	BodyLen    int       `json:"body_len" csv:"body_len"`
	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