Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Set ¶
type Set struct {
FeedsCrawledTotal atomic.Uint64
EmailsSentTotal atomic.Uint64
FeedsCrawledErrors atomic.Uint64
}
Set holds application-level counters. It is safe for concurrent use. Pass a *Set by dependency injection instead of using package-level globals.
func (*Set) IncEmailsSent ¶
func (s *Set) IncEmailsSent()
IncEmailsSent atomically increments the emails-sent counter.
func (*Set) IncFeedsCrawled ¶
func (s *Set) IncFeedsCrawled()
IncFeedsCrawled atomically increments the feeds-crawled counter.
func (*Set) IncFeedsCrawledErrors ¶
func (s *Set) IncFeedsCrawledErrors()
IncFeedsCrawledErrors atomically increments the crawl-errors counter.
Click to show internal directories.
Click to hide internal directories.