video_analysis

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tag = "tag"
	Mid = "mid"
)

Variables

This section is empty.

Functions

func Provide

func Provide() fx.Option

Types

type Analysis

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

func NewAnalysis

func NewAnalysis(logger *zap.Logger, scores ...Score) *Analysis

func NewFxAnalysis

func NewFxAnalysis(logger *zap.Logger, blacklist *Blacklist, tagScore *TagScore) *Analysis

func (*Analysis) Calculate

func (als *Analysis) Calculate(key, value string) int

type Blacklist

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

func NewBlacklist

func NewBlacklist(db *gorm.DB) (*Blacklist, error)

func (*Blacklist) GetKeyType

func (b *Blacklist) GetKeyType() string

func (*Blacklist) GetScore

func (b *Blacklist) GetScore(value string) int

func (*Blacklist) Reload

func (b *Blacklist) Reload() error

type Score

type Score interface {
	GetKeyType() string
	GetScore(value string) int
	Reload() error
}

type TagScore

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

func NewTagScore

func NewTagScore(db *gorm.DB) (*TagScore, error)

func (*TagScore) GetKeyType

func (ts *TagScore) GetKeyType() string

func (*TagScore) GetScore

func (ts *TagScore) GetScore(value string) int

func (*TagScore) Reload

func (ts *TagScore) Reload() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL