mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-24 03:49:29 +02:00
08e9054ba4
* feat(driver): add Charset param * feat(driver): add convert to UTF8 by input charset
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
|
|
}
|
|
)
|