Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadCookiesClose ¶ added in v0.2.3
func ReadCookiesClose(store CookieStore, filters ...kooky.Filter) kooky.CookieSeq
func SingleRead ¶ added in v0.2.3
Types ¶
type CookieJar ¶
type CookieJar struct {
*cookiejar.Jar
CookieStore
// contains filtered or unexported fields
}
func NewCookieJar ¶ added in v0.2.3
func NewCookieJar(st CookieStore, filters ...kooky.Filter) *CookieJar
type CookieStore ¶
type CookieStore interface {
TraverseCookies(...kooky.Filter) kooky.CookieSeq
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 TraverseCookies method func (s *DefaultCookieStore) TraverseCookies(filters ...kooky.Filter) kooky.CookieSeq
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
Click to show internal directories.
Click to hide internal directories.