github.com/MontFerret/ferret@v0.18.0/pkg/drivers/params.go (about)

     1  package drivers
     2  
     3  type (
     4  	ResourceFilter struct {
     5  		URL  string
     6  		Type string
     7  	}
     8  
     9  	StatusCodeFilter struct {
    10  		URL  string
    11  		Code int
    12  	}
    13  
    14  	Ignore struct {
    15  		Resources   []ResourceFilter
    16  		StatusCodes []StatusCodeFilter
    17  	}
    18  
    19  	Viewport struct {
    20  		Height      int
    21  		Width       int
    22  		ScaleFactor float64
    23  		Mobile      bool
    24  		Landscape   bool
    25  	}
    26  
    27  	Params struct {
    28  		URL         string
    29  		UserAgent   string
    30  		KeepCookies bool
    31  		Cookies     *HTTPCookies
    32  		Headers     *HTTPHeaders
    33  		Viewport    *Viewport
    34  		Charset     string
    35  		Ignore      *Ignore
    36  	}
    37  
    38  	ParseParams struct {
    39  		Content     []byte
    40  		KeepCookies bool
    41  		Cookies     *HTTPCookies
    42  		Headers     *HTTPHeaders
    43  		Viewport    *Viewport
    44  	}
    45  )