Documentation ¶
Index ¶
- func RunStats(statsContainer *Stats, conf *config.Config)
- type Stats
- func (s *Stats) DropCertificate()
- func (s *Stats) DropConnect()
- func (s *Stats) DropConnection()
- func (s *Stats) DropDelete()
- func (s *Stats) DropGet()
- func (s *Stats) DropHead()
- func (s *Stats) DropOptions()
- func (s *Stats) DropOther()
- func (s *Stats) DropPatch()
- func (s *Stats) DropPost()
- func (s *Stats) DropPut()
- func (s *Stats) DropTrace()
- func (s *Stats) NewAdblockedRequest()
- func (s *Stats) NewCertificate()
- func (s *Stats) NewConnect()
- func (s *Stats) NewConnection()
- func (s *Stats) NewCrawleraError()
- func (s *Stats) NewCrawleraRequest()
- func (s *Stats) NewCrawleraTime(elapsed time.Duration)
- func (s *Stats) NewDelete()
- func (s *Stats) NewGet()
- func (s *Stats) NewHead()
- func (s *Stats) NewOptions()
- func (s *Stats) NewOther()
- func (s *Stats) NewOtherError()
- func (s *Stats) NewOverallTime(elapsed time.Duration)
- func (s *Stats) NewPatch()
- func (s *Stats) NewPost()
- func (s *Stats) NewPut()
- func (s *Stats) NewSessionCreated()
- func (s *Stats) NewTrace()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stats ¶
type Stats struct { RequestsNumber uint64 `json:"requests_number"` CrawleraRequests uint64 `json:"crawlera_requests"` SessionsCreated uint64 `json:"sessions_created"` ClientsConnected uint64 `json:"clients_connected"` AdblockedRequests uint64 `json:"adblocked_requests"` CrawleraErrors uint64 `json:"crawlera_errors"` AllErrors uint64 `json:"all_errors"` // The owls are not what they seem // do not believe RWMutex. We use it as shared/exclusive lock. OverallTimes *durationTimeSeries `json:"overall_times"` CrawleraTimes *durationTimeSeries `json:"crawlera_times"` Uptime statsUptime `json:"uptime"` // contains filtered or unexported fields }
Stats is a collector of statistics. Its idea is to listen to all provided channels and generate reports (JSON data structures).
func (*Stats) DropCertificate ¶
func (s *Stats) DropCertificate()
func (*Stats) DropConnect ¶
func (s *Stats) DropConnect()
func (*Stats) DropConnection ¶
func (s *Stats) DropConnection()
func (*Stats) DropDelete ¶
func (s *Stats) DropDelete()
func (*Stats) DropOptions ¶
func (s *Stats) DropOptions()
func (*Stats) NewAdblockedRequest ¶
func (s *Stats) NewAdblockedRequest()
func (*Stats) NewCertificate ¶
func (s *Stats) NewCertificate()
func (*Stats) NewConnect ¶
func (s *Stats) NewConnect()
func (*Stats) NewConnection ¶
func (s *Stats) NewConnection()
func (*Stats) NewCrawleraError ¶
func (s *Stats) NewCrawleraError()
func (*Stats) NewCrawleraRequest ¶
func (s *Stats) NewCrawleraRequest()
func (*Stats) NewCrawleraTime ¶
func (*Stats) NewOptions ¶
func (s *Stats) NewOptions()
func (*Stats) NewOtherError ¶
func (s *Stats) NewOtherError()
func (*Stats) NewOverallTime ¶
func (*Stats) NewSessionCreated ¶
func (s *Stats) NewSessionCreated()
Click to show internal directories.
Click to hide internal directories.