Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorizer ¶
type Authorizer struct {
Token string
}
Authorizer implements twitter.Authorizer to authorize Twitter requests
func NewAuthorizer ¶
func NewAuthorizer(token string) *Authorizer
NewAuthorizer implements a new Authorizer instance
func (*Authorizer) Add ¶
func (a *Authorizer) Add(req *http.Request)
Add implements twitter.Authorizer
type ScoreDetails ¶
type ScoreDetails struct { LinkedAt *time.Time `json:"linked_at,omitempty"` SubscribersCount uint64 `json:"followers_count"` }
func NewScoreDetails ¶
func NewScoreDetails(linkedAt *time.Time, subscribersCount uint64) *ScoreDetails
func (*ScoreDetails) GetScore ¶
func (d *ScoreDetails) GetScore() (score uint64)
GetScore implements types.ProfileScoreDetails
type Scorer ¶
type Scorer struct {
// contains filtered or unexported fields
}
Scorer represents a scorers.Scorer instance to score profiles based on their Twitter statistics
func (*Scorer) GetChannel ¶
GetChannel returns the YouTube channel data of the user having the given username
func (*Scorer) GetRateLimit ¶
func (s *Scorer) GetRateLimit() *profilesscore.ScoreRateLimit
GetRateLimit implements Scorer
func (*Scorer) GetScoreDetails ¶
func (s *Scorer) GetScoreDetails(_ string, application string, username string) (types.ProfileScoreDetails, error)
GetScoreDetails implements Scorer
Click to show internal directories.
Click to hide internal directories.