1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-26 03:51:57 +02:00
ferret/pkg/drivers/params.go

46 lines
689 B
Go
Raw Normal View History

package drivers
type (
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
}
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
Charset string
2021-03-05 08:08:28 -05:00
Ignore *Ignore
}
ParseParams struct {
Content []byte
KeepCookies bool
Cookies *HTTPCookies
Headers *HTTPHeaders
Viewport *Viewport
}
)