collector

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CollectOriginProductsPeriod = 3 * time.Minute
View Source
const NoOriginID = 0

Variables

This section is empty.

Functions

func SliceInt64ToStr

func SliceInt64ToStr(values []int64, sep string) string

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(log *zap.Logger, cfg *config.Config, ctx context.Context, store *store.Store, tg *bot.Bot) *Collector

func (*Collector) CollectCategories

func (c *Collector) CollectCategories() error

func (*Collector) CollectOriginID

func (c *Collector) CollectOriginID() error

func (*Collector) CollectOriginProducts

func (c *Collector) CollectOriginProducts() error

func (*Collector) CollectSaleProducts

func (c *Collector) CollectSaleProducts() error

func (*Collector) Notify

func (c *Collector) Notify() error

func (*Collector) Run

func (c *Collector) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL