Versions in this module Expand all Collapse all v0 v0.2.4 May 10, 2022 Changes in this version + const Mid + const Tag + func Provide() fx.Option + type Analysis struct + func NewAnalysis(logger *zap.Logger, scores ...Score) *Analysis + func NewFxAnalysis(logger *zap.Logger, blacklist *Blacklist, tagScore *TagScore) *Analysis + func (als *Analysis) Calculate(key, value string) int + type Blacklist struct + func NewBlacklist(db *gorm.DB) (*Blacklist, error) + func (b *Blacklist) GetKeyType() string + func (b *Blacklist) GetScore(value string) int + func (b *Blacklist) Reload() error + type Score interface + GetKeyType func() string + GetScore func(value string) int + Reload func() error + type TagScore struct + func NewTagScore(db *gorm.DB) (*TagScore, error) + func (ts *TagScore) GetKeyType() string + func (ts *TagScore) GetScore(value string) int + func (ts *TagScore) Reload() error