Back to godoc.org

Package popularity

v0.0.0-...-ffd16d0
Latest Go to latest

The latest major version is .

Published: Jul 8, 2020 | License: LGPL-3.0 | Module: github.com/urandom/readeef

Index

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier