popularity

package
v0.0.0-...-95c851e Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Popularity

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

func New

func New(config config.Popularity, log log.Log) Popularity

func (Popularity) ScoreContent

func (p Popularity) ScoreContent(ctx context.Context, service repo.Service)

type Reddit

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

func FromReddit

func FromReddit(config config.Popularity, log log.Log) (Reddit, error)

func (Reddit) Score

func (r Reddit) Score(link string) (int64, error)

func (Reddit) String

func (re Reddit) String() string

type Twitter

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

func FromTwitter

func FromTwitter(config config.Popularity, log log.Log) Twitter

func (Twitter) Score

func (t Twitter) Score(link string) (int64, error)

func (Twitter) String

func (t Twitter) String() string

Jump to

Keyboard shortcuts

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