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
|
|
|
|
}
|
|
|
|
|
|
|
|
Disable struct {
|
|
|
|
Resources []ResourceFilter
|
|
|
|
}
|
|
|
|
|
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
|
2019-09-05 11:49:21 -04:00
|
|
|
Cookies HTTPCookies
|
2019-08-04 17:25:47 -04:00
|
|
|
Headers HTTPHeaders
|
2019-07-17 13:29:16 -04:00
|
|
|
Viewport *Viewport
|
2021-02-19 11:40:30 -05:00
|
|
|
Disable *Disable
|
2019-07-17 13:29:16 -04:00
|
|
|
}
|
2020-01-04 12:57:41 -05:00
|
|
|
|
|
|
|
ParseParams struct {
|
|
|
|
Content []byte
|
|
|
|
KeepCookies bool
|
|
|
|
Cookies HTTPCookies
|
|
|
|
Headers HTTPHeaders
|
|
|
|
Viewport *Viewport
|
|
|
|
}
|
2019-07-17 13:29:16 -04:00
|
|
|
)
|