Documentation
¶
Index ¶
- type Storage
- func (s *Storage) Cookies(u *url.URL) string
- func (s *Storage) Init() error
- func (s *Storage) IsVisited(requestID uint64) (bool, error)
- func (s *Storage) SavePage(requestID uint64, u *url.URL, body []byte)
- func (s *Storage) SetCookies(u *url.URL, cookies string)
- func (s *Storage) Visited(requestID uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { Database string URI string VisitedCollection string "colly_visited" CookiesCollection string "colly_cookies" PagesCollection string "colly_pages" // contains filtered or unexported fields }
Storage implements a MongoDB storage backend for colly
func (*Storage) SetCookies ¶
SetCookies implements colly/storage.SetCookies()
Click to show internal directories.
Click to hide internal directories.