Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTarget = "127.0.0.1:9222"
Variables ¶
Functions ¶
func ResolveTarget ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SetCookies ¶
type CookieConversion ¶
type CookieConversion struct {
Cookies []CookieParam
Skipped int
}
func CookiesToParams ¶
func CookiesToParams(stored []auth.StoredCookie) CookieConversion
type CookieParam ¶
type CookieParam struct {
Name string `json:"name"`
Value string `json:"value"`
URL string `json:"url,omitempty"`
Domain string `json:"domain,omitempty"`
Path string `json:"path,omitempty"`
Secure bool `json:"secure,omitempty"`
HTTPOnly bool `json:"httpOnly,omitempty"`
Expires *float64 `json:"expires,omitempty"`
SameSite string `json:"sameSite,omitempty"`
}
type SyncResult ¶
type SyncResult struct {
CDP string `json:"cdp"`
Attempted int `json:"attempted"`
Set int `json:"set"`
Skipped int `json:"skipped"`
}
func SyncCookies ¶
func SyncCookies(ctx context.Context, sessionFile, target string) (*SyncResult, error)
Click to show internal directories.
Click to hide internal directories.