Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductCollector ¶
type ProductCollector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector() ProductCollector
func (*ProductCollector) Collect ¶
func (p *ProductCollector) Collect(ch chan<- prometheus.Metric)
func (*ProductCollector) Describe ¶
func (p *ProductCollector) Describe(descs chan<- *prometheus.Desc)
func (*ProductCollector) TrackProduct ¶
func (pc *ProductCollector) TrackProduct(name string, price float64)
type ShopScraper ¶
type ShopScraper struct {
// contains filtered or unexported fields
}
func NewScraper ¶
func NewScraper(client ShopClient, publisher Notifier, logger *zap.Logger) ShopScraper
Click to show internal directories.
Click to hide internal directories.