Documentation ¶
Index ¶
- func GetSessionCookieInfo(site string) *cookieInfo
- func NewCookieInfoArgs(name string, sameSite http.SameSite) *cookieInfoArgs
- func NewCookieInfoArgsByWebsite(website string) *cookieInfoArgs
- func ParseJsonCookie(cookieBytes []byte, cookieArgs *cookieInfoArgs) ([]*http.Cookie, error)
- func ParseJsonCookieFile(f *os.File, filePath string, cookieArgs *cookieInfoArgs) ([]*http.Cookie, error)
- func ParseTxtCookie(txtContent string, cookieArgs *cookieInfoArgs) ([]*http.Cookie, error)
- func ParseTxtCookieFile(f *os.File, filePath string, cookieArgs *cookieInfoArgs) ([]*http.Cookie, error)
- type ExportedCookies
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionCookieInfo ¶
func GetSessionCookieInfo(site string) *cookieInfo
Returns the cookie info for the specified site
Will panic if the site does not match any of the cases
func NewCookieInfoArgs ¶
func NewCookieInfoArgsByWebsite ¶ added in v1.1.0
func NewCookieInfoArgsByWebsite(website string) *cookieInfoArgs
func ParseJsonCookie ¶
func ParseJsonCookieFile ¶
func ParseTxtCookie ¶
Types ¶
type ExportedCookies ¶
type ExportedCookies []struct { Domain string `json:"domain"` Expire float64 `json:"expirationDate"` HttpOnly bool `json:"httpOnly"` Name string `json:"name"` Path string `json:"path"` Secure bool `json:"secure"` Value string `json:"value"` Session bool `json:"session"` }
For the exported cookies in JSON instead of Netscape format
Click to show internal directories.
Click to hide internal directories.