classifier

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Classifier

type Classifier interface {
	Classify(ctx context.Context, infoHashes ...model.Hash20) error
}

type MissingHashesError

type MissingHashesError struct {
	InfoHashes []model.Hash20
}

func (MissingHashesError) Error

func (e MissingHashesError) Error() string

type Params

type Params struct {
	fx.In
	Persistence persistence.Persistence
	Resolver    resolver.RootResolver
	Logger      *zap.SugaredLogger
}

type Result

type Result struct {
	fx.Out
	Classifier Classifier
}

func New

func New(p Params) (Result, error)

Directories

Path Synopsis
asynq
video

Jump to

Keyboard shortcuts

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