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 modules, 3 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

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
⌂ 换网址