readeef: github.com/urandom/readeef/popularity Index | Files

package popularity

import "github.com/urandom/readeef/popularity"

Index

Package Files

link.go popularity.go reddit.go twitter.go

type Popularity Uses

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

func New Uses

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

func (Popularity) ScoreContent Uses

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

type Reddit Uses

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

func FromReddit Uses

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

func (Reddit) Score Uses

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

func (Reddit) String Uses

func (re Reddit) String() string

type Twitter Uses

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

func FromTwitter Uses

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

func (Twitter) Score Uses

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

func (Twitter) String Uses

func (t Twitter) String() string

Package popularity imports 15 packages (graph) and is imported by 1 packages. Updated 2018-05-04. Refresh now. Tools for package owners.