Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrListSessions = fmt.Errorf("failed to list sessions")
)
Functions ¶
This section is empty.
Types ¶
type FlareSolverr ¶
type FlareSolverr struct {
// contains filtered or unexported fields
}
func NewFlareSolverr ¶
func NewFlareSolverr(url string, timeoutMilli int) *FlareSolverr
func (*FlareSolverr) CreateSession ¶
func (f *FlareSolverr) CreateSession() string
func (*FlareSolverr) FillSessionPool ¶
func (f *FlareSolverr) FillSessionPool() error
func (*FlareSolverr) Get ¶
func (f *FlareSolverr) Get(_url string) (io.ReadCloser, error)
func (*FlareSolverr) ListSessions ¶
func (f *FlareSolverr) ListSessions() ([]string, error)
func (*FlareSolverr) RetrieveSession ¶
func (f *FlareSolverr) RetrieveSession() string
type Requster ¶
type Requster struct {
// contains filtered or unexported fields
}
func NewRequester ¶
func NewRequester(fs *FlareSolverr, c *cache.Redis) *Requster
func (*Requster) GetDocument ¶
func (*Requster) SetShortLivedCacheExpiration ¶ added in v0.8.0
type Response ¶
type Response struct { Status string `json:"status"` Message string `json:"message"` Solution struct { Url string `json:"url"` Status int `json:"status"` Cookies []struct { Domain string `json:"domain"` Expiry int `json:"expiry"` HttpOnly bool `json:"httpOnly"` Name string `json:"name"` Path string `json:"path"` SameSite string `json:"sameSite"` Secure bool `json:"secure"` Value string `json:"value"` } `json:"cookies"` UserAgent string `json:"userAgent"` Headers map[string]string `json:"headers"` Response string `json:"response"` } `json:"solution"` }
Click to show internal directories.
Click to hide internal directories.