Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoMatch = errors.New("no match")
)
Functions ¶
This section is empty.
Types ¶
type Classifier ¶
type MissingHashesError ¶
func (MissingHashesError) Error ¶
func (e MissingHashesError) Error() string
type Params ¶
type Params struct { fx.In Search search.Search SubResolvers []SubResolver `group:"content_resolvers"` Dao *dao.Query Logger *zap.SugaredLogger }
type Resolver ¶ added in v0.2.0
type Resolver interface {
Resolve(ctx context.Context, content model.TorrentContent) (model.TorrentContent, error)
}
type Result ¶
type Result struct { fx.Out Classifier Classifier Duration prometheus.Collector `group:"prometheus_collectors"` SuccessTotal prometheus.Collector `group:"prometheus_collectors"` NoMatchTotal prometheus.Collector `group:"prometheus_collectors"` ErrorTotal prometheus.Collector `group:"prometheus_collectors"` }
type SubResolver ¶ added in v0.2.0
type SubResolver interface { Config() SubResolverConfig PreEnrich(content model.TorrentContent) (model.TorrentContent, error) Resolver }
type SubResolverConfig ¶ added in v0.2.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.