1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-02-03 13:11:45 +02:00
ferret/pkg/drivers/params.go

39 lines
575 B
Go
Raw Normal View History

package drivers
type (
ResourceFilter struct {
URL string
Type string
}
Disable struct {
Resources []ResourceFilter
}
Viewport struct {
Height int
Width int
ScaleFactor float64
Mobile bool
Landscape bool
}
Params struct {
URL string
UserAgent string
KeepCookies bool
Cookies HTTPCookies
Headers HTTPHeaders
Viewport *Viewport
Disable *Disable
}
ParseParams struct {
Content []byte
KeepCookies bool
Cookies HTTPCookies
Headers HTTPHeaders
Viewport *Viewport
}
)