cookies

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieJar

type CookieJar struct {
	*cookiejar.Jar

	CookieStore
	// contains filtered or unexported fields
}

func (*CookieJar) Cookies

func (s *CookieJar) Cookies(u *url.URL) []*http.Cookie

func (*CookieJar) InitJar

func (s *CookieJar) InitJar() error

func (*CookieJar) SubJar

func (s *CookieJar) SubJar(filters ...kooky.Filter) (http.CookieJar, error)

type CookieStore

type CookieStore interface {
	ReadCookies(...kooky.Filter) ([]*kooky.Cookie, error)
	Browser() string
	Profile() string
	IsDefaultProfile() bool
	FilePath() string
	Close() error
}

kooky.CookieStore without http.CookieJar and SubJar()

type DefaultCookieStore

type DefaultCookieStore struct {
	FileNameStr          string
	File                 *os.File
	BrowserStr           string
	ProfileStr           string
	OSStr                string
	IsDefaultProfileBool bool
}

DefaultCookieStore implements most of the kooky.CookieStore interface except for the ReadCookies method func (s *DefaultCookieStore) ReadCookies(filters ...kooky.Filter) ([]*kooky.Cookie, error)

DefaultCookieStore also provides an Open() method

func (*DefaultCookieStore) Browser

func (s *DefaultCookieStore) Browser() string

func (*DefaultCookieStore) Close

func (s *DefaultCookieStore) Close() error

func (*DefaultCookieStore) FilePath

func (s *DefaultCookieStore) FilePath() string

func (*DefaultCookieStore) IsDefaultProfile

func (s *DefaultCookieStore) IsDefaultProfile() bool

func (*DefaultCookieStore) Open

func (s *DefaultCookieStore) Open() error

func (*DefaultCookieStore) Profile

func (s *DefaultCookieStore) Profile() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL