analysis

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 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 Analyzer

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

func New

func New(d Dependencies) (*Analyzer, error)

func (*Analyzer) AnalyzeSetInsights

func (a *Analyzer) AnalyzeSetInsights(ctx context.Context, category domain.Category, setID int, options SetInsightsOptions) (domain.SetInsights, error)

func (*Analyzer) SummarizeReleaseCounts

func (a *Analyzer) SummarizeReleaseCounts(ctx context.Context, category *domain.Category, yearFrom int, yearTo *int, includeSupplemental bool) (domain.ReleaseCountsSummary, error)

type CategoryProvider

type CategoryProvider func(context.Context) ([]domain.Category, error)

type Dependencies

type Dependencies struct {
	API        tcgapi.API
	Categories CategoryProvider
}

type Service

type Service interface {
	SummarizeReleaseCounts(context.Context, *domain.Category, int, *int, bool) (domain.ReleaseCountsSummary, error)
	AnalyzeSetInsights(context.Context, domain.Category, int, SetInsightsOptions) (domain.SetInsights, error)
}

type SetInsightsOptions

type SetInsightsOptions struct {
	TopN              int
	ProductKindFilter domain.ProductKindFilter
	MinMarketPrice    *float64
}

Jump to

Keyboard shortcuts

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