2019-07-17 13:29:16 -04:00
|
|
|
package drivers
|
|
|
|
|
|
|
|
type (
|
2021-02-19 11:40:30 -05:00
|
|
|
ResourceFilter struct {
|
|
|
|
URL string
|
|
|
|
Type string
|
|
|
|
}
|
|
|
|
|
2021-03-05 08:08:28 -05:00
|
|
|
StatusCodeFilter struct {
|
|
|
|
URL string
|
|
|
|
Code int
|
|
|
|
}
|
|
|
|
|
|
|
|
Ignore struct {
|
|
|
|
Resources []ResourceFilter
|
|
|
|
StatusCodes []StatusCodeFilter
|
2021-02-19 11:40:30 -05:00
|
|
|
}
|
|
|
|
|
2019-07-17 13:29:16 -04:00
|
|
|
Viewport struct {
|
|
|
|
Height int
|
|
|
|
Width int
|
|
|
|
ScaleFactor float64
|
|
|
|
Mobile bool
|
|
|
|
Landscape bool
|
|
|
|
}
|
|
|
|
|
|
|
|
Params struct {
|
|
|
|
URL string
|
|
|
|
UserAgent string
|
|
|
|
KeepCookies bool
|
2021-03-26 12:01:00 -04:00
|
|
|
Cookies *HTTPCookies
|
|
|
|
Headers *HTTPHeaders
|
2019-07-17 13:29:16 -04:00
|
|
|
Viewport *Viewport
|
2021-04-09 01:35:29 +03:00
|
|
|
Charset string
|
2021-03-05 08:08:28 -05:00
|
|
|
Ignore *Ignore
|
2019-07-17 13:29:16 -04:00
|
|
|
}
|
2020-01-04 12:57:41 -05:00
|
|
|
|
|
|
|
ParseParams struct {
|
|
|
|
Content []byte
|
|
|
|
KeepCookies bool
|
2021-03-26 12:01:00 -04:00
|
|
|
Cookies *HTTPCookies
|
|
|
|
Headers *HTTPHeaders
|
2020-01-04 12:57:41 -05:00
|
|
|
Viewport *Viewport
|
|
|
|
}
|
2019-07-17 13:29:16 -04:00
|
|
|
)
|