amass

package module
v0.0.0-...-0239bfd Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amasser

type Amasser struct {
	TotalMaxConcurrentRequests int
	AllowedErrorProportion     float64
	verbose.Verbose
}

func AmasserForTests

func AmasserForTests() *Amasser

func (*Amasser) GetAll

func (a *Amasser) GetAll(reqs []*GetRequest) ([]*GetResponse, error)

type GetRequest

type GetRequest struct {
	Site                      string
	RequestKey                string
	MinVersion                int
	URL                       string
	SiteMaxConcurrentRequests int
	Attribution               attributions.Attribution
	RoundTripData             []byte
}

func (*GetRequest) Get

func (r *GetRequest) Get() (*GetResponse, error)

func (*GetRequest) SetRoundTripData

func (r *GetRequest) SetRoundTripData(i interface{})

type GetResponse

type GetResponse struct {
	Site          string
	RequestKey    string
	Version       int
	URL           string
	ResponseBody  string
	StatusCode    int
	Status        string
	Attribution   attributions.Attribution
	RoundTripData []byte
}

func (*GetResponse) AsDocument

func (h *GetResponse) AsDocument() *goquery.Document

func (*GetResponse) AsXMLObject

func (h *GetResponse) AsXMLObject(i interface{}) error

func (*GetResponse) GetRoundTripData

func (r *GetResponse) GetRoundTripData(i interface{})

Jump to

Keyboard shortcuts

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