mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-21 21:47:43 +02:00
46 lines
689 B
Go
46 lines
689 B
Go
package drivers
|
|
|
|
type (
|
|
ResourceFilter struct {
|
|
URL string
|
|
Type string
|
|
}
|
|
|
|
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
|
|
Ignore *Ignore
|
|
}
|
|
|
|
ParseParams struct {
|
|
Content []byte
|
|
KeepCookies bool
|
|
Cookies *HTTPCookies
|
|
Headers *HTTPHeaders
|
|
Viewport *Viewport
|
|
}
|
|
)
|