Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { profiles.Database SaveApplicationLinkScore(score *types.ProfileScore) error }
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) GetScorers ¶
func (*Module) RefreshApplicationLinksScores ¶
RefreshApplicationLinksScores reads all the applications links stored inside the database and refreshes their scores
type ScoreRateLimit ¶
func NewScoreRateLimit ¶
func NewScoreRateLimit(duration time.Duration, rateLimit uint64) *ScoreRateLimit
type Scorer ¶
type Scorer interface { // GetRateLimit returns the rate limit for this scorer, if any GetRateLimit() *ScoreRateLimit // GetScoreDetails returns the score details for the user having the given address // and username on the specified application GetScoreDetails(address string, application string, username string) (types.ProfileScoreDetails, error) }
Scorer represents a generic parses that gets data from an external application and converts it to a specific score
type Scorers ¶
type Scorers []Scorer
func (Scorers) GetRateLimit ¶
func (s Scorers) GetRateLimit() *ScoreRateLimit
Source Files ¶
Click to show internal directories.
Click to hide internal directories.