ratingcollector

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	Auth(ctx context.Context) error
	Stop() error
	FetchRatingsAndSave(ctx context.Context, id int64) error
	SubscribeAndSave(ctx context.Context, id int64)
}

func NewFetcher

func NewFetcher(appID int, appHash, phone string, repo repo, sessionRepo sessionRepo, logger log.Logger) Fetcher

type RatingChecker

type RatingChecker interface {
	Check(ctx context.Context, tweet *common.TweetSnapshot) (bool, float64, error)
	CurrentTop() float64
}

func NewChecker

func NewChecker(db repo, topCount int) RatingChecker

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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