Documentation
¶
Overview ¶
Package stats provides a simple way to track and manipulate statistics related to web crawling.
Index ¶
- type Stats
- func (s *Stats) GetMatchedLinks() int
- func (s *Stats) GetNotMatchedLinks() int
- func (s *Stats) GetTotalPages() int
- func (s *Stats) IncrementMatchedLinks()
- func (s *Stats) IncrementNotMatchedLinks()
- func (s *Stats) IncrementTotalLinks()
- func (s *Stats) IncrementTotalPages()
- func (s *Stats) Report() map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats struct { TotalLinks int MatchedLinks int NotMatchedLinks int TotalPages int Links []string // contains filtered or unexported fields }
Stats holds counters for various metrics related to web crawling.
func (*Stats) GetMatchedLinks ¶
GetMatchedLinks retrieves the total number of not matched links.
func (*Stats) GetNotMatchedLinks ¶
GetNotMatchedLinks retrieves the total number of not matched links.
func (*Stats) GetTotalPages ¶
GetTotalPages retrieves the total number of pages crawled.
func (*Stats) IncrementMatchedLinks ¶
func (s *Stats) IncrementMatchedLinks()
IncrementMatchedLinks increases the MatchedLinks counter by one.
func (*Stats) IncrementNotMatchedLinks ¶
func (s *Stats) IncrementNotMatchedLinks()
IncrementNotMatchedLinks increases the NotMatchedLinks counter by one.
func (*Stats) IncrementTotalLinks ¶
func (s *Stats) IncrementTotalLinks()
IncrementTotalLinks increases the TotalLinks counter by one.
func (*Stats) IncrementTotalPages ¶
func (s *Stats) IncrementTotalPages()
IncrementTotalPages increases the TotalPages counter by one.
Click to show internal directories.
Click to hide internal directories.