Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ValueAllTime is the all time relevance statistics value for the time span key in the database.
ValueAllTime = "all_time"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
MongoDB wraps database access.
func (*MongoDB) Relevance ¶
func (mng *MongoDB) Relevance( ctx context.Context, user string, opts storage.RelevanceOptions, ) (*storage.Relevance, error)
Relevance returns a relevance from the database.
func (*MongoDB) UpdateRelevances ¶
func (mng *MongoDB) UpdateRelevances( ctx context.Context, user string, relevances storage.Relevances, ) error
UpdateRelevances updates the relevances into the database.
Click to show internal directories.
Click to hide internal directories.