Documentation ¶
Index ¶
- func ContainsCookie(cookies []*http.Cookie, name string) bool
- func GetUrlHash(u string) uint64
- func StringifyCookies(cookies []*http.Cookie) string
- func UnstringifyCookies(s string) []*http.Cookie
- type BetterInMemoryStorage
- func (s *BetterInMemoryStorage) ClearVisited(requestID uint64) error
- func (s *BetterInMemoryStorage) Close() error
- func (s *BetterInMemoryStorage) Cookies(u *url.URL) string
- func (s *BetterInMemoryStorage) Init() error
- func (s *BetterInMemoryStorage) IsVisited(requestID uint64) (bool, error)
- func (s *BetterInMemoryStorage) SetCookies(u *url.URL, cookies string)
- func (s *BetterInMemoryStorage) Visited(requestID uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsCookie ¶
ContainsCookie checks if a cookie name is represented in cookies
func GetUrlHash ¶
func StringifyCookies ¶
StringifyCookies serializes list of http.Cookies to string
func UnstringifyCookies ¶
UnstringifyCookies deserializes a cookie string to http.Cookies
Types ¶
type BetterInMemoryStorage ¶
type BetterInMemoryStorage struct {
// contains filtered or unexported fields
}
func (*BetterInMemoryStorage) ClearVisited ¶
func (s *BetterInMemoryStorage) ClearVisited(requestID uint64) error
func (*BetterInMemoryStorage) Close ¶
func (s *BetterInMemoryStorage) Close() error
Close implements Storage.Close()
func (*BetterInMemoryStorage) Cookies ¶
func (s *BetterInMemoryStorage) Cookies(u *url.URL) string
Cookies implements Storage.Cookies()
func (*BetterInMemoryStorage) Init ¶
func (s *BetterInMemoryStorage) Init() error
Init initializes InMemoryStorage
func (*BetterInMemoryStorage) IsVisited ¶
func (s *BetterInMemoryStorage) IsVisited(requestID uint64) (bool, error)
IsVisited implements Storage.IsVisited()
func (*BetterInMemoryStorage) SetCookies ¶
func (s *BetterInMemoryStorage) SetCookies(u *url.URL, cookies string)
SetCookies implements Storage.SetCookies()
func (*BetterInMemoryStorage) Visited ¶
func (s *BetterInMemoryStorage) Visited(requestID uint64) error
Visited implements Storage.Visited()
Click to show internal directories.
Click to hide internal directories.